added deepsleep, thus esp has to reconnect wifi
This commit is contained in:
parent
e9ba6b7c23
commit
5abae49a33
@ -122,6 +122,7 @@ void loop() {
|
|||||||
mqttClient.endMessage();
|
mqttClient.endMessage();
|
||||||
|
|
||||||
okLED();
|
okLED();
|
||||||
|
ESP.deepSleep(60 * 1000 * 1000);
|
||||||
} else {
|
} else {
|
||||||
Serial.println("Error: GPS not valid");
|
Serial.println("Error: GPS not valid");
|
||||||
errorLED(5);
|
errorLED(5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user