Compare commits

..

4 Commits

Author SHA1 Message Date
790a23c71d 增加数据说明 2026-01-21 17:11:08 +08:00
9fd9d2a89e fix aircon_gateway 2026-01-13 14:38:43 +08:00
c405ba7d6d add debug 2026-01-12 16:57:11 +08:00
7cabbb8757 Merge pull request 'aircon_mst' (#1) from aircon_mst into master
Reviewed-on: #1
2026-01-12 15:39:21 +08:00
3 changed files with 8 additions and 1 deletions

View File

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

7
docs/data.md Normal file
View File

@ -0,0 +1,7 @@
# 关于数据含义
## 概念说明
遥测为AI遥信为DI事件为SOE。其中AI和DI我可以实现数据的展示SOE只能报警显示无法实现画面的二次应用。对于智慧照明开关灯定义为SOE我后台这边只存在一条事件
## unit字段说明
![img.png](img.png)

BIN
docs/img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 KiB