Difference between revisions of "Command:16"

From Awesome Baozam
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Monitoring packet ==
+
__NOTOC__
 +
==Monitor packet==
  
1  cmd type
+
* is an alias of [[CMD:2|response to GET]]
2  cmd id // set by server
+
* used for sending monitoring data. Sending ON/OFF regulated by [[cmd:13|SET Monitor]]
1  streams count // max 256
+
 
streams:N
+
{{CMD:2|monitor}}
  4 addr
+
  1 type
+
  tl websocket length
+
  t* value|values
+
  
 
<noinclude>
 
<noinclude>
This packet should be send in answer or/and periodically after [[CMD:103|Monitoring request]].
+
{{CMD:13}}
{{:CMD:103}}
+

Latest revision as of 16:02, 18 November 2015

Monitor packet

response to GET

1  cmd type
2  cmd id // set by server
1  monitors count // max 256

monitor*

 4  address
 1  parameter type
 [wl] values count; if this > 1 then pt < 0 and this byte presents in the packet
 v* value; see details into parameter type



SET Monitor

Response to GET Monitor

1  cmd type
2  cmd id // set by server
1  monitors count // max 256

monitors*

 4 addr
 1 on/off