From 9fd9d2a89eaf55e11d60a7b209e8312551de8d22 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Tue, 13 Jan 2026 14:38:43 +0800 Subject: [PATCH] fix aircon_gateway --- apps/iot/src/iot_mqtt_aircon_gateway.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/iot_mqtt_aircon_gateway.erl b/apps/iot/src/iot_mqtt_aircon_gateway.erl index f4b6d4a..8764f47 100644 --- a/apps/iot/src/iot_mqtt_aircon_gateway.erl +++ b/apps/iot/src/iot_mqtt_aircon_gateway.erl @@ -117,7 +117,7 @@ handle_cast({send_command, Ref, ReceiverPid, DeviceId, Command}, State = #state{ {stop, Reason :: term(), NewState :: #state{}}). handle_info({mqtt_message, Topic, Payload, _Qos}, State = #state{inflight = Inflight}) -> lager:debug("[iot_mqtt_aircon_gateway] get reply of topic: ~p, payload: ~p", [Topic, Payload]), - case binary:split(Topic, <<"/">>) of + case binary:split(Topic, <<"/">>, [global]) of [<<>>, <<"aircon">>, DeviceId, <<"command_reply">>] -> Reply = catch jiffy:decode(Payload, [return_maps]), case Reply of