first commit
This commit is contained in:
parent
b16268e617
commit
0acb25669b
@ -201,7 +201,7 @@ static void on_mqtt_message_received(const std::string &topic, const std::string
|
|||||||
void mqtt_client_thread_func()
|
void mqtt_client_thread_func()
|
||||||
{
|
{
|
||||||
const auto &cfg = g_app_config.mqtt;
|
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)
|
while (g_running)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user