first commit
This commit is contained in:
parent
3db90de6b0
commit
e35890e5f8
@ -8,7 +8,7 @@ extern std::atomic<bool> g_running;
|
|||||||
|
|
||||||
std::atomic<std::string> g_dispatch_id{""};
|
std::atomic<std::string> g_dispatch_id{""};
|
||||||
auto last_heartbeat = std::chrono::steady_clock::now();
|
auto last_heartbeat = std::chrono::steady_clock::now();
|
||||||
auto heartbeat_interval = std::chrono::milliseconds(static_cast<int>(cfg.keep_alive * 0.9));
|
auto heartbeat_interval = std::chrono::milliseconds(static_cast<int>(g_app_config.mqtt.keep_alive * 0.9));
|
||||||
|
|
||||||
static void send_heartbeat()
|
static void send_heartbeat()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user