Difference between revisions of "Command:1"

From Awesome Baozam
Jump to: navigation, search
(Created page with "<pre> size (bytes) 1 cmd type 1 parameters count // max 256 2 cmd id // set by server parameters:N 1 type // if > 0 then it is followed by value, else (<0) followed by co...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>
+
==GET==
size (bytes)
+
 
1  cmd type
+
1  cmd type
1 parameters count // max 256
+
  2  cmd id // set by server
2  cmd id // set by server
+
{{{1|parameter}}}s count // max 256
parameters:N
+
{{{1|parameter}}}*
type // if  > 0 then it is followed by value, else (<0) followed by count of values (see websocket lentgh rules), followed by values
+
  4* address
  1 int8
+
 
  2 uint8
+
<noinclude>
  3  int16
+
=== Notes ===
  uint16
+
* If count == 0 device should send in response all parameters
  5  int32
+
* TODO depend on user level (?)
  6  uint32
+
 
  7  int64
+
{{cmd:2}}
  8  uint64
+
  9  float32
+
  10 float64
+
  11 char
+

Latest revision as of 11:23, 18 November 2015

GET

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

parameter*

4*  address


Notes

  • If count == 0 device should send in response all parameters
  • TODO depend on user level (?)

response to GET

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

parameter*

 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