From 9ee62f3964bacb304c24adf15770cb385021b116 Mon Sep 17 00:00:00 2001 From: cxh Date: Mon, 8 Sep 2025 15:13:30 +0800 Subject: [PATCH] first commit --- src/mqtt_client_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt_client_wrapper.cpp b/src/mqtt_client_wrapper.cpp index 1c76914..561560e 100644 --- a/src/mqtt_client_wrapper.cpp +++ b/src/mqtt_client_wrapper.cpp @@ -39,7 +39,7 @@ void mqtt_client_thread_func() { while (true) { - const auto &cfg = g_app_config; + const auto &cfg = g_app_config.mqtt; mqtt_client = std::make_unique(cfg); mqtt_client->setConnectCallback(on_mqtt_connected);