fix
This commit is contained in:
parent
0d5d5aa852
commit
5b4ff5422d
@ -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} ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user