Advertisement
loquilo

Untitled

Aug 9th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. void loop() {
  2. if (timer > millis()) timer = millis();
  3. if (millis() - timer > SENSORS_READING_TIME) { //1mmin
  4. timer = millis();
  5.  
  6. }
  7.  
  8. if (timer > millis()) timer = millis();
  9. if (millis() - timer > KEEPALIVE_TIME) { //1hour
  10. timer = millis();
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement