Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1.             if(currentTime.hours > nextSunrise.hours && currentTime.hours < nextSunset.hours)
  2.             {
  3.               Serial.println("SLEEPING");
  4.               goSleep(TX_INTERVAL_SLEEP);
  5.             }
  6.             else
  7.             {
  8.               Serial.println("AWAKE and SENDING");
  9.               //os_setCallback(&sendjob, do_send);
  10.               os_setTimedCallback(&sendjob, TX_INTERVAL_SEND ,do_send);
  11.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement