查询设备某天的原始数据

例, 请求: 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

参数 描述 必选
action queryDeviceRawDataOneDay
pn 数采器编号
devcode 设备协议编码
devaddr 设备地址(485总线)
sn 设备序列号
date 要查询的日期, 格式: yyyy-mm-dd, 日期被认为是设备所在时区

响应:

参数 描述 必选
row[x] 查询设备最近的一笔原始数据
{
    "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"
            }           
        ]
    }
}

可能出现的错误:

返回错误码 描述 详细描述
0x0006 ERR_FORMAT_ERROR 参数错误
0x000C ERR_NO_RECORD 无记录(该设备没有数据)
0x0102 ERR_NOT_FOUND_DEVICE 找不到设备