Query Device control items
for example: http://api.shinemonitor.com/public/?sign=7f220b6f21d0b52d0452d9c66ffe1f4f84635b81&salt=2337424845041575962&token=91a6c87e89acbfb2fa482f3b02ee071ee58ea0293dd92f243a88ee51415f497f&action=queryDeviceCtrlFieldForDist&vcode=00&devcode=512&i18n=zh_CN&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1
Parameter |
Description |
Required |
action |
queryDeviceCtrlFieldForDist |
True |
vcode |
Dealer account code |
True |
devcode |
Device protocol encoding |
True |
i18n |
Internationalized language, refer to Multi-Language Support |
True |
response:
Parameter |
Description |
Required |
field[x].id |
Unique identifier of control item |
True |
field[x].name |
Internationalization Description |
True |
field[x].visable |
Is it visible to the Plant owner |
True |
field[x].distributorPermissionFlag |
Is it visible to Dealers |
True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"field":[
{
"id":"charger_from_grid_start_time",
"name":"充电开始时间(小时:分钟)",
"visable":true
},
{
"id":"charger_from_grid_end_time",
"name":"充电结束时间(小时:分钟)",
"visable":true
}
]
}
}
Possible errors:
Response error code |
Description |
Details |
0x000B |
ERR_NO_PERMISSION |
No permission (only the manufacturer's account can operate) |
0x0007 |
ERR_MISSING_PARAMETER |
Missing necessary parameters |
0x0010 |
ERR_PASSWORD_VERIF_FAIL |
Password verification failed (encryption error) |
0x0011 |
ERR_PASSWORD_FORMAT_ERROR |
Password format error |
0x0013 |
ERR_MOBILE_FORMAT |
Phone number format error |
0x0014 |
ERR_EMAIL_FORMAT |
Email format error |
0x0015 |
ERR_USRNAME_FORMAT |
User name format error |
0x0017 |
ERR_VCODE_INVALID |
Invalid manufacturer code |
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 protocol |