first commit

This commit is contained in:
cxh 2025-09-09 16:32:28 +08:00
parent b16268e617
commit 0acb25669b

View File

@ -201,7 +201,7 @@ static void on_mqtt_message_received(const std::string &topic, const std::string
void mqtt_client_thread_func()
{
const auto &cfg = g_app_config.mqtt;
auto heartbeat_interval = std::chrono::milliseconds(static_cast<int>(cfg.mqtt.keep_alive * 0.9));
auto heartbeat_interval = std::chrono::milliseconds(static_cast<int>(cfg.keep_alive * 0.9));
while (g_running)
{