Query the raw data of the device for a certain day
such as, request: http://api.dessmonitor.com/public/?sign=4abf368f52db8a41c4d2e713a7a3c2c4a237d40c&salt=703913826968548310&token=fc7514619a81e67f787b546bf6af89375a09127a3b89c7e697414dacb089fb05&action=queryDeviceRawDataOneDay&pn=J1817101731142&devcode=752&devaddr=1&sn=687484400018&date=2017-04-05&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1
| parameter |
description |
required |
| action |
queryDeviceRawDataOneDay |
true |
| pn |
Digital collector number |
true |
| devcode |
Device protocol encoding |
true |
| devaddr |
Device address (485 bus) |
true |
| sn |
Device serial number |
true |
| date |
The date to query, format: yyyy-mm-dd, The date is considered the time zone of the device |
true |
response:
{
"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 error:
| Returns an error code |
description |
detailed description |
| 0x0006 |
ERR_FORMAT_ERROR |
parameter error |
| 0x000C |
ERR_NO_RECORD |
no records(no data for the device) |
| 0x0102 |
ERR_NOT_FOUND_DEVICE |
device not found |