diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 61d0fa9..67a403f 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -237,6 +237,7 @@ handle_event(cast, need_auth, _StateName, State = #state{uuid = UUID}) -> %% 需要将消息转换成json格式然后再处理, 需要在host进程里面处理 %% 收到消息则认为主机端已经发送了心跳包 handle_event(cast, {handle, Payload}, _StateName, State) -> + lager:debug("[iot_host] get payload: ~p", [Payload]), Message = catch jiffy:decode(Payload, [return_maps]), lager:debug("[iot_host] get message: ~p", [Message]), gen_statem:cast(self(), {handle_message, Message}),