Ensure the network connection has completed before trying MQTT.

This commit is contained in:
Robert Strouse 2024-07-14 09:59:14 -07:00
parent c3ada3b40e
commit fb1f18e260
4 changed files with 10 additions and 1 deletions

View file

@ -49,7 +49,9 @@ void loop() {
Serial.print("Rebooting after ");
Serial.print(rebootDelay.rebootTime);
Serial.println("ms");
net.end();
ESP.restart();
return;
}
uint32_t timing = millis();