Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(currentTime.hours > nextSunrise.hours && currentTime.hours < nextSunset.hours)
- {
- Serial.println("SLEEPING");
- goSleep(TX_INTERVAL_SLEEP);
- }
- else
- {
- Serial.println("AWAKE and SENDING");
- //os_setCallback(&sendjob, do_send);
- os_setTimedCallback(&sendjob, TX_INTERVAL_SEND ,do_send);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement