Difference between revisions of "Command:23"

From Awesome Baozam
Jump to: navigation, search
Line 1: Line 1:
== SET Stream ==
+
==SET Stream==
  
 
* is an alias of [[CMD:22|response to GET Stream]]
 
* is an alias of [[CMD:22|response to GET Stream]]
* used for set stream
+
* used for set monitor
  
{{CMD:12}}
+
{{CMD:22}}
 +
4 period NB.
 +
      positive value - send periodically every V*10ms,
 +
      0 - do not send,
 +
      -1 - send occasionally,
 +
      -2 - send immediately
  
 
<noinclude>
 
<noinclude>
 
As response to this command should be send
 
As response to this command should be send
* [[cmd:14]] response to Monitor SET
+
* [[cmd:24]] response to Stream SET
 
and can be send
 
and can be send
* [[CMD:16|Monitor packets]]
+
* [[CMD:26|Stream packets]]
  
{{CMD:14}}
+
{{CMD:24}}
{{CMD:16}}
+
{{CMD:26}}
 
+
  4 period NB.
+
      positive value - send periodically every V*10ms,
+
      0 - do not send,
+
      -1 - send occasionally,
+
      -2 - send immediately
+

Revision as of 12:23, 26 November 2015

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 period NB. 
     positive value - send periodically every V*10ms, 
     0 - do not send, 
     -1 - send occasionally, 
     -2 - send immediately


As response to this command should be send

  • cmd:24 response to Stream SET

and can be send


response to 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




Stream packet

  • used for streaming data. Sending period regulated by SET Stream
1  cmd type
2  cmd id // set by server
1  streams count // max 256
stream*
   4  address
   1  parameter type
  [wl] values count
   data*
       [v] value; see details into parameter type
        4 timestamp // can be 0, in this case server/client time should be used