mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-01 18:21:39 +02:00
small improvement, MQTT
This commit is contained in:
parent
1d0860f851
commit
a1aedce59e
2 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,8 @@ lib_deps =
|
||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
board = esp12e
|
board = esp12e
|
||||||
board_build.f_cpu = 80000000L
|
board_build.f_cpu = 80000000L
|
||||||
build_flags = -D RELEASE -Wl,-Map,output.map
|
build_flags = -D RELEASE
|
||||||
|
;-Wl,-Map,output.map
|
||||||
monitor_filters =
|
monitor_filters =
|
||||||
;default ; Remove typical terminal control codes from input
|
;default ; Remove typical terminal control codes from input
|
||||||
;time ; Add timestamp with milliseconds for each new line
|
;time ; Add timestamp with milliseconds for each new line
|
||||||
|
|
|
@ -101,7 +101,7 @@ class PubMqtt {
|
||||||
if (mIntervalTimeout > 0)
|
if (mIntervalTimeout > 0)
|
||||||
mIntervalTimeout--;
|
mIntervalTimeout--;
|
||||||
|
|
||||||
if(!mClient.connected()) {
|
if(mClient.disconnected()) {
|
||||||
mClient.connect();
|
mClient.connect();
|
||||||
return; // next try in a second
|
return; // next try in a second
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue