small improvement, MQTT

This commit is contained in:
lumapu 2023-03-27 15:10:29 +02:00
parent 1d0860f851
commit a1aedce59e
2 changed files with 3 additions and 2 deletions

View file

@ -48,7 +48,8 @@ lib_deps =
platform = espressif8266
board = esp12e
board_build.f_cpu = 80000000L
build_flags = -D RELEASE -Wl,-Map,output.map
build_flags = -D RELEASE
;-Wl,-Map,output.map
monitor_filters =
;default ; Remove typical terminal control codes from input
;time ; Add timestamp with milliseconds for each new line

View file

@ -101,7 +101,7 @@ class PubMqtt {
if (mIntervalTimeout > 0)
mIntervalTimeout--;
if(!mClient.connected()) {
if(mClient.disconnected()) {
mClient.connect();
return; // next try in a second
}