Query the original data of the Device on a day

for example: http://api.shinemonitor.com/public/?sign=4abf368f52db8a41c4d2e713a7a3c2c4a237d40c&salt=703913826968548310&token=fc7514619a81e67f787b546bf6af89375a09127a3b89c7e697414dacb089fb05&action=queryDeviceRawDataOneDay&pn=J1817101731142&devcode=752&devaddr=1&sn=687484400018&date=2017-04-05&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryDeviceRawDataOneDay True
pn Datalogger number True
devcode Device protocol code True
devaddr Device address (485 bus) True
sn Device serial number True
date Date to query, format: yyyy-mm-dd, Date is considered as the time zone where the Device is located True

response:

Parameter Description Required
row[x] refer to Query the latest original data of the Device True
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "row":[
            {
                "id":"a945e16a194f11e7bde91c6f6593e938",
                "dat":"Njg3NDg0NDAwMDE4ICAgF8QWxQBiALAAnAAHAAAELwAAA5IAAAAADEUMSQkbCWMIzxOIE4gTiAE4AVEBOAAAB7kBKAF2////////Awf/////////AA0iAAAADjAwMDEyMDAwMDExNjAwMDA2NzAwMDAzMzYwMDAwMzM2MDAwMTIwMDAwMTAwMDEwMDE4OTAwMDMzNjA1MDAwMDMzNjA4NjY4MDM5OTUxNjExMDcwOTE1Mzcx",
                "valid":0,
                "gts":"2017-04-05 00:00:25"
            },
            {
                "id":"5c5b3379195011e7bde91c6f6593e938",
                "dat":"Njg3NDg0NDAwMDE4ICAgF8QWxQBiALAAnAAHAAAELwAAA5IAAAAADEUMSQkbCWMIzxOIE4gTiAE4AVEBOAAAB7kBKAF2////////Awf/////////AA0iAAAADjAwMDEyMDAwMDExNjAwMDA2NzAwMDAzMzYwMDAwMzM2MDAwMTIwMDAwMTAwMDEwMDE4OTAwMDMzNjA1MDAwMDMzNjA4NjY4MDM5OTUxNjExMDcwOTE1Mzcx",
                "valid":0,
                "gts":"2017-04-05 00:05:26"
            }           
        ]
    }
}

Possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Parameter error
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:35:03

results matching ""

    No results matching ""