Query camera information
Explanation: For the camera of Benmai, the domainAddr
obtains the following information:ssp://47.106.132.38:5552 ; cloud://47.106.132.38:5556
. This form of address can be used by the web and app to extract the necessary information from the address, as detailed in the demo provided by Benmai
Parameter | Description | Required |
---|---|---|
action | queryCameraInfo | True |
deviceName | Device name | False |
domainId | Device Domain Name | False |
usr | User name | False |
page | Paging processing, page number, starting from 0. If this parameter is not passed, it is defaulted to 0 | False |
pagesize | Paging processing, with 1 to 50 records per page. If this parameter is not passed, it defaults to 1 | False |
response:
Parameter | Description | Required |
---|---|---|
total | Number of cameras | True |
plantUsr | Owner of the Plant | True |
usr | Camera username | True |
pwd | Camera password | True |
plantName | Name of affiliated Plant | True |
domainId | Device Domain Name | True |
deviceName | Device name | True |
devicePn | Camera PN number | True |
deviceSn | Camera SN/ID number | True |
domainAddr | Device DDNS, please refer to the description section for this field on the camera of Benmai | True |
httpPort | Http port | True |
serverPort | Server port | True |
desc | Description | False |
type | Camera type, 0 for Haikang and 1 for Benmai | True |
gts | Storage time, format: yyyy mm dd HH: mm: ss | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"total":1,
"camera":[
{
"plantUsr":"示例摄像头",
"usr":"test",
"pwd":"test",
"plantName":"plant",
"domainId":"domainid",
"deviceName":"示例摄像头",
"deviceSn":"1234566790211",
"devicePn":"E0017200001523",
"domainAddr":"www.hiddns.com",
"httpPort":5581,
"serverPort":8000,
"type":0,
"gts":"2017-08-18 00:47:53"
}
]
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0101 | ERR_NOT_FOUND_COLLECTOR | Datalogger not found |
0x0104 | ERR_NOT_FOUND_PLANT | Plant not found |
0x0105 | ERR_NOT_FOUND_USR | User not found |
0x0120 | ERR_NOT_FOUND_CAMERA | Camera not found |