Compare commits
1 Commits
master
...
aircon_mst
| Author | SHA1 | Date | |
|---|---|---|---|
| c7153b3c9c |
@ -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, <<"/">>, [global]) of
|
||||
case binary:split(Topic, <<"/">>) of
|
||||
[<<>>, <<"aircon">>, DeviceId, <<"command_reply">>] ->
|
||||
Reply = catch jiffy:decode(Payload, [return_maps]),
|
||||
case Reply of
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
# 关于数据含义
|
||||
|
||||
## 概念说明
|
||||
遥测为AI;遥信为DI;事件为SOE。其中AI和DI我可以实现数据的展示,SOE只能报警显示无法实现画面的二次应用。对于智慧照明,开关灯定义为SOE,我后台这边只存在一条事件
|
||||
|
||||
## unit字段说明
|
||||

|
||||
BIN
docs/img.png
BIN
docs/img.png
Binary file not shown.
|
Before Width: | Height: | Size: 541 KiB |
Loading…
x
Reference in New Issue
Block a user