Difference between revisions of "Command:1"

From Awesome Baozam
Jump to: navigation, search
m (Baya moved page CMD: GET to CMD:1)
Line 1: Line 1:
 +
GET
 +
 
== request ==
 
== request ==
<pre>
+
1  cmd type
size (bytes)
+
  2  cmd id // set by server
1  cmd type
+
parameters count // max 256
1 parameters count // max 256
+
   parameters:N
2  cmd id // set by server
+
  4  address
parameters:N
+
  1 [[parameter type]]
type // if  > 0 then it is followed by value, else (<0) followed by count of values (see websocket lentgh rules), followed by values
+
 
   1  int8
+
  2 uint8
+
  3  int16
+
  uint16
+
  5 int32
+
  6 uint32
+
  7  int64
+
  8  uint64
+
  9  float32
+
  10 float64
+
  11 char
+
</pre>
+
  
 
== response ==
 
== response ==
<pre>
+
if OK then [[CMD:2]]
 +
else
 +
  [[CMD:2]]

Revision as of 12:54, 3 November 2015

GET

request

1  cmd type
2  cmd id // set by server
1  parameters count // max 256
 parameters:N
4  address
1  parameter type


response

if OK then CMD:2
else
  CMD:2