To query the value of the dim capability from a device implementing it, use the following request :
HEADERS Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
GET https://sandbox.api.iotcl.pro/v1.0/myrgblamp/light/addressLocation/plants/da912079034c44ce814651de720e9ff0/modules/parameter/id/value/423a5107223541e6b1f05966321eb76c/
200: OK
{
"id":"423a5107223541e6b1f05966321eb76c",
"name":"My Device",
"status":[
{
"capability":"dim",
"value":"0"
}
]
}
where "value" can be : any value between 0 and 100 (in %)
To execute the dim capability for a device implementing it, use the following request :
HEADERS Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
POST https://sandbox.api.iotcl.pro/v1.0/myrgblamp/light/addressLocation/plants/da912079034c44ce814651de720e9ff0/modules/parameter/id/value/423a5107223541e6b1f05966321eb76c/
{
"status":[
{
"capability":"dim",
"value":"0"
}
]
}
where "value" can be : any value between 0 and 100 (in %)
200: OK