structure7 / hvacMonitor

Monitoring supply/return air temps, run status, and on/off durations.
MIT License
10 stars 6 forks source link

New solid Heartbeat code #61

Closed structure7 closed 8 years ago

structure7 commented 8 years ago

Do it:

WidgetLED led1(V18); // Heartbeat

void setup()
{
  timer.setInterval(5000L, sendHeartbeatOn); // Blinks Blynk LED to reflect online status
}

void sendHeartbeatOn()
{
  led1.on();
  timer.setTimeout(2500L, sendHeartbeatOff);
}

void sendHeartbeatOff()
{
  led1.off();
}