added deepsleep, thus esp has to reconnect wifi
This commit is contained in:
1 parent
e9ba6b7c23
commit
5abae49a33
1 file changed
+1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user