mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-05 07:54:18 +01:00
Force MQTT close client before reconnecting. Revert back to latest ESPAsyncTCP
This commit is contained in:
@@ -131,6 +131,8 @@ void mqttConnect() {
|
||||
|
||||
if (!mqtt.connected()) {
|
||||
|
||||
mqtt.disconnect();
|
||||
|
||||
char * host = strdup(getSetting("mqttServer", MQTT_SERVER).c_str());
|
||||
if (strlen(host) == 0) return;
|
||||
unsigned int port = getSetting("mqttPort", MQTT_PORT).toInt();
|
||||
|
||||
@@ -9,7 +9,7 @@ lib_deps =
|
||||
Adafruit Unified Sensor
|
||||
https://github.com/xoseperez/Time
|
||||
ArduinoJson
|
||||
https://github.com/me-no-dev/ESPAsyncTCP#e074eaac
|
||||
ESPAsyncTCP
|
||||
ESPAsyncWebServer
|
||||
https://github.com/marvinroger/async-mqtt-client
|
||||
Embedis
|
||||
|
||||
Reference in New Issue
Block a user