diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 58fe1e2..5d7fe35 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -289,6 +289,7 @@ handle_event(cast, {handle, <>}, session, State Info = iot_cipher_aes:decrypt(AES, Info0), case catch jiffy:decode(Info, [return_maps]) of #{<<"at">> := At, <<"services">> := ServiceInforms} -> + lager:debug("[iot_host] service infos is: ~p", [ServiceInforms]), lists:foreach(fun(#{<<"props">> := Props, <<"name">> := Name, <<"version">> := Version, <<"version_copy">> := VersionCopy, <<"status">> := Status}) -> %% props 主机id:场景id:微服务id [_, SceneId0, MicroId0] = binary:split(Props, <<":">>, [global]),