add debug
This commit is contained in:
parent
4f635bdf0c
commit
a0e8131972
@ -285,6 +285,7 @@ handle_event(cast, {handle, {ping, CipherMetric}}, session, State = #state{uuid
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
handle_event(cast, {handle, {inform, Info0}}, session, State = #state{host_id = HostId, aes = AES}) ->
|
handle_event(cast, {handle, {inform, Info0}}, session, State = #state{host_id = HostId, aes = AES}) ->
|
||||||
|
lager:debug("[iot_host] handler inform, aes: ~p", [AES]),
|
||||||
Info = iot_cipher_aes:decrypt(AES, Info0),
|
Info = iot_cipher_aes:decrypt(AES, Info0),
|
||||||
case catch jiffy:decode(Info, [return_maps]) of
|
case catch jiffy:decode(Info, [return_maps]) of
|
||||||
#{<<"at">> := At, <<"services">> := ServiceInforms} ->
|
#{<<"at">> := At, <<"services">> := ServiceInforms} ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user