Skip to content

Commit

Permalink
fix device hearbeat and report
Browse files Browse the repository at this point in the history
payload contains an object `data` instead of an array `params` (lumi-openlcoud#5)
  • Loading branch information
hobbyquaker authored Oct 27, 2018
1 parent 22e670c commit c456380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/docs/development/gateway-LAN-communication.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Door and window sensors reported the open/close status of windows, the format is
"cmd":"report",
"model":"sensor_magnet.aq2",
"sid":"xxxxxxxx",
"params":[{"window_status":"open"}]
"data":{"window_status":"open"}
}
```

Expand Down Expand Up @@ -141,7 +141,7 @@ The heartbeat of sub-devices are sent via **multicast** to (**IP: 224.0.0.50 Por
"cmd":"heartbeat",
"model":"sensor_magnet.aq2",
"sid":"xxxxxxxx",
"params":[{"window_status":"open"}]
"data": {"window_status":"open"}
}
```

Expand Down

0 comments on commit c456380

Please sign in to comment.