Query the data details of an important parameter of the Device on a certain day

for example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryDeviceKeyParameterOneDay&pn=J1817101731142&devcode=752&devaddr=1&sn=687484400018&parameter=WIND_SPEED&date=2017-04-05&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryDeviceKeyParameterOneDay True
pn Datalogger number True
devcode Device protocol code True
devaddr Device address (485 bus) True
sn Device serial number True
parameter Parameters to query, refer to Important Device parameters True
date Date to query , format: yyyy-mm-dd, Date is considered as the time zone where the Device is located, If this parameter is not passed, it will be defaulted to today True

response:

Parameter Description Required
parameter[x].val The value of the parameter, Standardized units True
parameter[x].ts The generation time of parameter values (in the time zone where the Device is located), format: yyyy-mm-dd hh:mi:ss True
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "parameter":[
            {
                "val":"29.0001",
                "ts":"2016-12-31 06:10:10"
            },
            {
                "val":"30.0001",
                "ts":"2016-12-31 06:15:10"
            }
        ]
    }
}

Possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Parameter error
0x0007 ERR_MISSING_PARAMETER Missing necessary parameters
0x000C ERR_NO_RECORD No record (the Device has no data)
0x0102 ERR_NOT_FOUND_DEVICE Device not found
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:34:16

results matching ""

    No results matching ""