move mqtt loop into network task
This commit is contained in:
@@ -357,7 +357,8 @@ bool Network::reconnect()
|
||||
|
||||
while(!_connectReplyReceived && millis() < timeout)
|
||||
{
|
||||
delay(200);
|
||||
delay(50);
|
||||
_device->update();
|
||||
if(_keepAliveCallback != nullptr)
|
||||
{
|
||||
_keepAliveCallback();
|
||||
|
||||
Reference in New Issue
Block a user