mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
wifiIsConnect, module Broker update
This commit is contained in:
@@ -121,6 +121,8 @@ bool _global_debug = false;
|
||||
clientMqtt->loop();
|
||||
if (picoMqtt)
|
||||
picoMqtt->loop();
|
||||
if (!clientMqtt && !picoMqtt)
|
||||
vTaskDelete(NULL);
|
||||
// picoMqtt.loop();
|
||||
// vTaskDelayUntil(&xLastWakeTime, pdMS_TO_TICKS(5));
|
||||
}
|
||||
@@ -213,9 +215,11 @@ bool _global_debug = false;
|
||||
|
||||
~BrokerMQTT()
|
||||
{
|
||||
vTaskDelete(brokerTask);
|
||||
delete picoMqtt;
|
||||
delete clientMqtt;
|
||||
//vTaskDelete(brokerTask);
|
||||
if (picoMqtt)
|
||||
delete picoMqtt;
|
||||
if (clientMqtt)
|
||||
delete clientMqtt;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user