Skip to content

Commit

Permalink
FIX: ESP.reset does not compile for ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Lapointe committed Sep 17, 2020
1 parent 1c11efa commit c00c0ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/EspMQTTClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ void EspMQTTClient::loop()
if (_enableSerialLogs)
Serial.println("MQTT!: Can't connect to broker after too many attempt, resetting board ...");

ESP.reset();
#ifdef ESP8266
ESP.reset();
#else
ESP.restart();
#endif
}
}
else
Expand Down

0 comments on commit c00c0ee

Please sign in to comment.