mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
small improvement, MQTT
This commit is contained in:
parent
1d0860f851
commit
a1aedce59e
2 changed files with 3 additions and 2 deletions
|
@ -101,7 +101,7 @@ class PubMqtt {
|
|||
if (mIntervalTimeout > 0)
|
||||
mIntervalTimeout--;
|
||||
|
||||
if(!mClient.connected()) {
|
||||
if(mClient.disconnected()) {
|
||||
mClient.connect();
|
||||
return; // next try in a second
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue