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} ->