Query the latest original data of the Device
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 |