fix
This commit is contained in:
parent
f55859ae4b
commit
47eebb218b
@ -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}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user