From 6cd70bc7ad9e89a4587cd458690088ebe4fa1756 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Mon, 26 Jun 2023 10:29:38 +0800 Subject: [PATCH] fix --- apps/iot/src/http_handler/http_host_handler.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/iot/src/http_handler/http_host_handler.erl b/apps/iot/src/http_handler/http_host_handler.erl index 95779b6..74f99bf 100644 --- a/apps/iot/src/http_handler/http_host_handler.erl +++ b/apps/iot/src/http_handler/http_host_handler.erl @@ -78,7 +78,10 @@ handle_request("POST", "/host/publish_command", _, <<"ts">> => iot_util:current_time(), <<"m">> => iolist_to_binary(jiffy:encode(Params, [force_utf8])) }, - BinReply = iolist_to_binary(jiffy:encode(append_service_name(PostParams, Reply), [force_utf8])), + + Reply1 = append_service_name(PostParams, Reply), + lager:debug("[http_host_handler] publish message is: ~p", [Reply1]), + BinReply = iolist_to_binary(jiffy:encode(Reply1, [force_utf8])), case iot_host:aes_encode(Pid, CommandType, BinReply) of {error, Reason} when is_binary(Reason) ->