fix
This commit is contained in:
parent
16882a038e
commit
38d8167b11
@ -125,7 +125,7 @@ handle_request("POST", "/host/activate", _, #{<<"uuid">> := UUID, <<"auth">> :=
|
|||||||
{ok, Ref} ->
|
{ok, Ref} ->
|
||||||
receive
|
receive
|
||||||
{response, Ref, Response} ->
|
{response, Ref, Response} ->
|
||||||
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, get response: ~p", [Response])
|
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, get response: ~p", [UUID, Response])
|
||||||
after Timeout * 1000 ->
|
after Timeout * 1000 ->
|
||||||
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, but get ack timeout", [UUID])
|
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, but get ack timeout", [UUID])
|
||||||
end;
|
end;
|
||||||
@ -151,7 +151,7 @@ handle_request("POST", "/host/activate", _, #{<<"uuid">> := UUID, <<"auth">> :=
|
|||||||
{ok, Ref} ->
|
{ok, Ref} ->
|
||||||
receive
|
receive
|
||||||
{response, Ref, Response} ->
|
{response, Ref, Response} ->
|
||||||
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, get response: ~p", [Response])
|
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, get response: ~p", [UUID, Response])
|
||||||
after Timeout * 1000 ->
|
after Timeout * 1000 ->
|
||||||
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, but get ack timeout", [UUID])
|
lager:debug("[iot_host_handler] host_id uuid: ~p, publish topic success, but get ack timeout", [UUID])
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user