From a5fa1d1bc5281a26d8624909aeb51aeccf4de007 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Mon, 26 Jun 2023 10:57:01 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_host.erl | 1 + 1 file changed, 1 insertion(+) 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]),