Query the latest original data of the Device

for example: http://api.shinemonitor.com/public/?sign=261007b9b49e6bb853674f707bbe07342090e16c&salt=4774753303431526569&token=1fa0b3a0872b7257aa7908e16d316f7149e515d41c8e23092eb83987d6cf2774&action=queryDeviceLastRawData&pn=J1817101731142&devcode=752&devaddr=1&sn=687484400018&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryDeviceLastRawData True
pn Datalogger number True
devcode Device protocol code True
devaddr Device address (485 bus) True
sn Device serial number True

response:

Parameter Description Required
id Data Unique Identification True
dat The original message reported by the Device is Base64 encoded True
valid Is the current data valid (in terms of business), 0? Valid: Invalid, this flag may be automatically set according to certain rules during data collection, or may be manually set
For example, in a scenario where the first data of an Inverter when turned on during the day may be somewhat abnormal, which can be detected manually or automatically
True
gts The timestamp at which the data occurred(The time zone where the Device is located), format: yyyy-mm-dd hh:mi:ss True
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "id":"53258de419e311e7bde91c6f6593e938",
        "dat":"Njg3NDg0NDAwMDE4ICAgF8QWxQBiALAAnAAHAAAELwAAA5IAAAAADEUMSQkbCWMIzxOIE4gTiAE4AVEBOAAAB7kBKAF2////////Awf/////////AA0iAAAADjAwMDEyMDAwMDExNjAwMDA2NzAwMDAzMzYwMDAwMzM2MDAwMTIwMDAwMTAwMDEwMDE4OTAwMDMzNjA1MDAwMDMzNjA4NjY4MDM5OTUxNjExMDcwOTE1Mzcx",
        "valid":0,
        "gts":"2017-04-05 17:37:27"
    }
}

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:34:52

results matching ""

    No results matching ""