5 Do Actions

Execute Action on Devices

Method

https://iotdev.dialog.lk/axt-iot-mbil-instance0001001/apkios/axtitomblebckenddev/callActiondev

Headers

IotMife-AccessToken : Generated At the step 4.2/4.3
X-Key               : Generated At the step 4.4
Accept              : application/json
Content-Type        : application/json

Body

Note : please change only the highlighted areas

{
    "operation":"deviceControl",
    "deviceId":"xxx",
    "actionName":"actionOne",
    "actionParameters" : {
        "ac1Value1":10,
        "ac1Value2":20,
        "ac1Value3":30,
        "ac1Value4":"port:03",
        "ac1Value5":"on"
    }
}

Response

{
    "deviceResponse": {
        "parameter": "status",
        "state": "success",
        "value": ""
        }
}
Last updated on 9th Mar 2018