Query the relationship view between Datalogger and Device in the Plant

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

Parameter Description Required
action queryPlantDeviceView True
plantid Plant id True

response:

Parameter Description Required
collector[x].pn Datalogger number True
collector[x].alias Datalogger alias False
collector[x].status Datalogger status False
collector[x].device[y].devcode Device protocol encoding False
collector[x].device[y].devaddr Device address (485 bus) False
collector[x].device[y].sn Device serial number False
collector[x].device[y].alias Device alias False
collector[x].device[y].status Device status False
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "collector":[
            {
                "pn":"COLLECTOR0000",
                "device":[
                    {
                        "devcode":512,
                        "devaddr":1,
                        "sn":"0123456789"
                    }
                ]
            }
        ]
    }
}

Possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Parameter error
0x000B ERR_NO_PERMISSION No permission (the user does not have permission to operate the Plants)
0x0101 ERR_NOT_FOUND_COLLECTOR Unable to find the Datalogger
0x0101 ERR_NOT_FOUND_DEVICE Unable to find the Device
0x0104 ERR_NOT_FOUND_PLANT Unable to find the Plant
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:20:24

results matching ""

    No results matching ""