This commit is contained in:
anlicheng 2023-06-20 11:20:28 +08:00
parent f55859ae4b
commit 47eebb218b

View File

@ -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}),