From 85214a89c9becd7863737d3875e36d261f403daa Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 17 Aug 2023 16:12:09 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_host.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index 42760ab..8daeda6 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -261,7 +261,7 @@ handle_event({call, From}, {create_session, PubKey}, ?STATE_DENIED, State = #sta EncReply = iot_cipher_rsa:encode(Reply, PubKey), {keep_state, State, [{reply, From, {ok, <<10:8, EncReply/binary>>}}]}; -handle_event({call, From}, {create_session, PubKey}, StateName, State = #state{host_id = HostId, uuid = UUID, aes = Aes}) -> +handle_event({call, From}, {create_session, PubKey}, StateName, State = #state{uuid = UUID, aes = Aes}) -> Reply = #{<<"a">> => true, <<"aes">> => Aes}, EncReply = iot_cipher_rsa:encode(Reply, PubKey), {ok, AffectedRow} = host_bo:change_status(UUID, ?HOST_ONLINE),