Exemplo n.º 1
0
        protected override void ExecuteInternal(TeensyBatDevice device)
        {
            int totalSeconds = (int)Math.Round((DateTime.UtcNow - EpochStart).TotalSeconds);

            totalSeconds = totalSeconds + 1;
            device.Send(string.Format(CultureInfo.InvariantCulture, "CT{0}\n", totalSeconds));
        }
Exemplo n.º 2
0
 protected override void ExecuteInternal(TeensyBatDevice device)
 {
     device.Send("CP\n");
 }