Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop() {
- if (timer > millis()) timer = millis();
- if (millis() - timer > SENSORS_READING_TIME) { //1mmin
- timer = millis();
- }
- if (timer > millis()) timer = millis();
- if (millis() - timer > KEEPALIVE_TIME) { //1hour
- timer = millis();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement