wamadb

物联网平台


获取设备下测点历史数据

[TOC]

简要描述
  • 接口状态:开发中
  • Content-Type:application/json
请求URL
  •  http://localhost:8080//iot-web/api/v1/device/historylist
请求方式
  • POST
请求参数
Header 请求参数
参数名 参数值 是否必填 参数类型 描述说明
token {{token}} Text 认证令牌
返回示例

{
    "devid":3326,//设备唯一ID
    "attrid":507,//测点唯一ID
    "begintime":"2022-04-12",//查询时间 (yyyy-MM-dd) 默认当天
    "method":"getHisMetaData"//方法名:getHisMetaData【可选】默认调用
}
返回参数说明
参数名 参数值 是否必填 参数类型 描述说明
devid 3329 Number 设备唯一ID
attrid 20789 Number 测点唯一ID
begintime 2022-05-11 String 查询时间 (yyyy-MM-dd) 默认当天
method getHisMetaDataTruck Object 方法名:getHisMetaDataTruck
响应式例
{
    "success": true,
    "errorstr": "",
    "errorcode": 0,
    "data": [
        {
            "createtime": 1649752133234,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.268"
        },
        {
            "createtime": 1649752073167,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.253"
        },
        {
            "createtime": 1649752013081,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.177"
        },
        {
            "createtime": 1649751953015,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.223"
        },
        {
            "createtime": 1649751892944,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.064"
        },
        {
            "createtime": 1649751832859,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.06"
        },
        {
            "createtime": 1649751772793,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.127"
        },
        {
            "createtime": 1649751712726,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.049"
        },
        {
            "createtime": 1649751652638,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.053"
        },
        {
            "createtime": 1649751592571,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.234"
        },
        {
            "createtime": 1649751533511,
            "unit": "mg/m3",
            "attrname": "氨气浓度",
            "value": "1.43"
        }
    ]
}

页面列表

ITEM_HTML