From 3da8c70a2d2e0d667743181e05a3755aa9cab3ea Mon Sep 17 00:00:00 2001 From: anlicheng Date: Tue, 20 Jun 2023 21:44:33 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_host.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 69b6b24..aea9dff 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -22,8 +22,8 @@ -define(SERVER, ?MODULE). -%% 心跳包的间隔周期, 值需要比host上传的间隔大一些才行 --define(TICKER_INTERVAL, 5000 * 2). +%% 心跳包的间隔周期, 值需要比host上传的间隔大一些才行; ping的间隔为20s +-define(TICKER_INTERVAL, 30000). -record(state, { host_id :: integer(),