EXAMPLE TEXT :
http://www.mobikey.eu/cmd/T/gxl0/pwd/0000
|
HEADER
DATA
|
Content-type: text/plain
OUT1=1
OUT1=0 OUT2=
|
HTTP STATUS CODE RESPONSE :
200
413
|
OK : posted commands successfully appended to command queue
Payload Too Large : command queue size > 4k
|
RESPONSE DATA :
OK
|
When command is pushed into queue, waiting to be fetched by device
|
OVER LENGTH
|
When a single command line is longer than 384 characters
|
OVER QUOTA
|
When command queue is full because the remote device doesn't fetch the commands
|
EXAMPLE JSON :
http://www.mobikey.eu/cmd/J/gxl0/pwd/0000
|
HEADER
DATA
|
Content-type: text/plain
OUT1=1
OUT1=0 OUT2=1
|
HTTP STATUS CODE RESPONSE :
200
413
|
OK : posted commands successfully appended to command queue
Payload Too Large : command queue size > 4k
|
RESPONSE DATA :
{"result": "OK"}
|
When command is pushed into queue, waiting to be fetched by device
|
{"result": "OVER LENGTH"}
|
When a single command line is longer than 384 characters
|
{"result": "OVER QUOTA"}
|
Command queue is full, the remote device doesn't fetch the commands
|
EXAMPLE JSONP :
http://www.mobikey.eu/cmd/data/gxl0/pwd/0000
|
HEADER
DATA
|
Content-type: text/plain
OUT1=1
OUT1=0 OUT2=1
|
HTTP STATUS CODE RESPONSE :
200
413
|
OK : posted commands successfully appended to command queue
Payload Too Large : command queue size > 4k
|
RESPONSE DATA :
data({"result": "OK"});
|
When command is pushed into queue, waiting to be fetched by device
|
data({"result": "OVER LENGTH"});
|
When a single command line is longer than 384 characters
|
data({"result": "OVER QUOTA"});
|
Command queue is full, the remote device doesn't fetch the commands
|
|