From 5b4ff5422d7b1061dab50914402170990f253e3c Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 15 Jun 2023 21:50:57 +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 bc5079c..ee00f18 100644 --- a/apps/iot/src/iot_host.erl +++ b/apps/iot/src/iot_host.erl @@ -230,7 +230,7 @@ handle_call(Info, _From, State) -> {noreply, NewState :: #state{}, timeout() | hibernate} | {stop, Reason :: term(), NewState :: #state{}}). handle_cast(need_auth, State = #state{uuid = UUID}) -> - Reply = jiffy:encode(#{<<"a">> => false, <<"aes">> => <<"">>}, [force_utf8]), + Reply = jiffy:encode(#{<<"auth">> => false, <<"aes">> => <<"">>}, [force_utf8]), {ok, Ref} = iot_mqtt_publisher:publish(downstream_topic(UUID), <<8:8, Reply/binary>>, 1), receive {ok, Ref, PacketId} ->