Query the number of Devices owned by a Plant owner under a subordinate account
Parameter | Description | Required |
---|---|---|
action | querySubUsrPlantOwnerDeviceCount | True |
uid | Sub account ID | True |
plantOwnerUid | The owner ID of a certain Plant under a sub account | True |
response:
Parameter | Description | Required |
---|---|---|
count | Number of Devices | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"count":8
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Format error, parameter error |
0x0105 | ERR_NOT_FOUND_USR | Unable to find user |
0x000B | ERR_NO_PERMISSION | No permissions |