Difference between revisions of "Command:26"

From Awesome Baozam
Jump to: navigation, search
m (Baya moved page Command:16 to Command:26 without leaving a redirect)
Line 1: Line 1:
== Stream packet ==
+
__NOTOC__
 +
== Stream packet==
  
1  cmd type
+
* is an alias of [[CMD:2|response to GET]]
cmd id // set by server
+
* used for sending streaming data. Sending period regulated by [[cmd:23|SET Stream ]]
1  streams count // max 256
+
 
streams:N
+
{{CMD:2|stream}}
  4 addr
+
  1 type
+
  t value
+
  4 timestamp // can be 0, in this case server/client time should be used
+
  
 
<noinclude>
 
<noinclude>
This packet should be send in answer or/and periodically after [[CMD:101|Stream request]].
+
{{CMD:23}}
{{:CMD:101}}
+
  4 timestamp // can be 0, in this case server/client time should be used

Revision as of 12:31, 26 November 2015

Stream packet

response to GET

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

stream*

 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 Stream

Response to GET Stream

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

streams*

 4 addr
 4 period NB. 
     positive value - send periodically every V seconds, 
     0 - do not send, 
     -1 - send occasionally, 
     -2 - send immediately



 4 timestamp // can be 0, in this case server/client time should be used