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(),