first commit
This commit is contained in:
parent
204e773f4b
commit
9ee62f3964
@ -39,7 +39,7 @@ void mqtt_client_thread_func()
|
|||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
const auto &cfg = g_app_config;
|
const auto &cfg = g_app_config.mqtt;
|
||||||
|
|
||||||
mqtt_client = std::make_unique<MQTTClient>(cfg);
|
mqtt_client = std::make_unique<MQTTClient>(cfg);
|
||||||
mqtt_client->setConnectCallback(on_mqtt_connected);
|
mqtt_client->setConnectCallback(on_mqtt_connected);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user