Query camera information

for example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryCameraInfo&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Explanation: For the camera of Benmai, the domainAddrobtains 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
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 13:48:37

results matching ""

    No results matching ""