From c456380d719c990861197dd5da09e55b441c488d Mon Sep 17 00:00:00 2001 From: Sebastian Raff Date: Sat, 27 Oct 2018 14:20:31 +0200 Subject: [PATCH] fix device hearbeat and report payload contains an object `data` instead of an array `params` (#5) --- en/docs/development/gateway-LAN-communication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/docs/development/gateway-LAN-communication.md b/en/docs/development/gateway-LAN-communication.md index 95e2f14..446369e 100644 --- a/en/docs/development/gateway-LAN-communication.md +++ b/en/docs/development/gateway-LAN-communication.md @@ -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"} } ``` @@ -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"} } ```