Query device control items
such as, request: http://api.dessmonitor.com/public/?sign=7f220b6f21d0b52d0452d9c66ffe1f4f84635b81&salt=2337424845041575962&token=91a6c87e89acbfb2fa482f3b02ee071ee58ea0293dd92f243a88ee51415f497f&action=queryDeviceCtrlFieldForDist&vcode=00&devcode=512&i18n=zh_CN&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1
| parameter |
description |
required |
| action |
queryDeviceCtrlFieldForDist |
true |
| vcode |
Distributor account number |
true |
| devcode |
Device protocol encoding |
true |
| i18n |
International language, seeMulti-language support |
true |
response:
| parameter |
description |
required |
| field[x].id |
The control item is uniquely identified |
true |
| field[x].name |
Internationalization description |
true |
| field[x].visable |
Whether it is visible to the power station owner |
true |
| field[x].distributorPermissionFlag |
Whether it is visible to resellers |
true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"field":[
{
"id":"charger_from_grid_start_time",
"name":"Charging start time (hours:minutes)",
"visable":true
},
{
"id":"charger_from_grid_end_time",
"name":"End of charge time (hours:minutes)",
"visable":true
}
]
}
}
possible error:
| Returns an error code |
description |
detailed description |
| 0x000B |
ERR_NO_PERMISSION |
no permission(Only the manufacturer account can be operated) |
| 0x0007 |
ERR_MISSING_PARAMETER |
The necessary parameters are missing |
| 0x0010 |
ERR_PASSWORD_VERIF_FAIL |
Password validation failed (encryption error) |
| 0x0011 |
ERR_PASSWORD_FORMAT_ERROR |
The password format is incorrect |
| 0x0013 |
ERR_MOBILE_FORMAT |
The phone number format is incorrect |
| 0x0014 |
ERR_EMAIL_FORMAT |
The email format is incorrect |
| 0x0015 |
ERR_USRNAME_FORMAT |
The Username format is incorrect |
| 0x0017 |
ERR_VCODE_INVALID |
The manufacturer code is invalid |
| 0x0161 |
ERR_NOT_FOUND_PROTOCOL |
Protocol not found |
| 0x0170 |
ERR_NOT_FOUND_DEFINEDROLE |
Role not found |
| 0x0300 |
ERR_PROTOCOL_NOT_OPTION |
There are no optional fields in the agreement |