JSONP

Device Control ›› Set Chrono ››
Parent Previous Next

POST /

http://www.mobikey.eu/set/chrono/{DEVICE}/pwd/{PASSWORD}/jsonp/{K}

{DEVICE}

{PASSWORD}

{K}

code identifying the remote device

password assigned to remote device

callback (required for JSONP response format)


EXAMPLE :


http://www.mobikey.eu/set/chrono/F7GYgh/pwd/0000/jsonp/data


HEADER


DATA

Content-type: application/javascript


{"CHRONO1":{

       "MON":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "TUE":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "WED":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "THU":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "FRI":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "SAT":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "SUN":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

       },

"CHRONO2":{

       "MON":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "TUE":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "WED":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "THU":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "FRI":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "SAT":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

       "SUN":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

       }

}



RESPONSE STATUS : 200 OK


RESPONSE DATA :


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


data({

       "result": "OK"

});



When command queue is full because the remote device doesn't fetch the commands


data({

       "result": "OVER QUOTA"

});



- JSON is accepted in both readable and concise format

- Settings are allowed only if regulators are enabled on remote device

- Single channel setting is allowed