POST /

http://www.mobikey.eu/cmd/{K}/{DEVICE}/pwd/{PASSWORD}

{DEVICE}

{PASSWORD}

{K}

code identifying the remote device

password assigned to remote device

T for plain text response

J for JSON response

callback for JSONP


EXAMPLE TEXT :


http://www.mobikey.eu/cmd/T/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 :


OK

When command is pushed into queue, waiting to be fetched by device

or real time response from devices belonging to VPN

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

or real time response from devices belonging to VPN

{"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

or real time response from devices belonging to VPN

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


Up to 5 commands allowed per line. Each line terminated by <Cr>, <Lf> or <Cr><Lf>.

COMMAND LIST AVAILABLE HERE