diff --git a/apps/iot/src/iot_host.erl b/apps/iot/src/iot_host.erl index b4161c3..270e404 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -277,7 +277,7 @@ handle_event({call, From}, {create_session, PubKey}, _, State = #state{uuid = UU Reply = #{<<"a">> => false, <<"aes">> => <<"">>}, EncReply = iot_cipher_rsa:encode(Reply, PubKey), - {next_state, ?STATE_DENIED, [{reply, From, {ok, <<10:8, EncReply/binary>>}}]} + {next_state, ?STATE_DENIED, State, [{reply, From, {ok, <<10:8, EncReply/binary>>}}]} end; %% 重新加载设备信息