网关上送设备状态接口信息如下:

{
    "snCode":"",
    "device":[
        {
            "id":"d0tU ",
            "name":"温湿度传感器",
            "productId":"FY_TYPE_sensorjdrkwsd",
            "properties":[
                {
                    "propertyId":"0302",
                    "name":"温度",
                    "unit":"℃",
                    "funcId":"02",
                    "value":"14.2",
                    "type":"FLOAT"
                },
                {
                    "propertyId":"0303",
                    "name":"湿度",
                    "unit":"%",
                    "funcId":"01",
                    "value":"76.2",
                    "type":"FLOAT"
                }
            ]
        },
        {
            "id":"vWh0",
            "name":"氨气传感器",
            "productId":"FY_TYPE_sensorjdrknh3",
            "properties":[
                {
                    "propertyId":"0319",
                    "name":"氨气",
                    "unit":"ppm",
                    "funcId":"01",
                    "value":"0.0",
                    "type":"FLOAT"
                }
            ]
        },
        {
            "id":"N3yE",
            "name":"大气压传感器",
            "productId":"FY_TYPE_sensorjdrkpressure",
            "properties":[
                {
                    "propertyId":"0302",
                    "name":"温度",
                    "unit":"℃",
                    "funcId":"02",
                    "value":"14.2",
                    "type":"FLOAT"
                },
                {
                    "propertyId":"0320",
                    "name":"气压",
                    "unit":"Kpa",
                    "funcId":"01",
                    "value":"0",
                    "type":"FLOAT"
                }
            ]
        }
    ]
}

参数说明:

序号 字段名称 数据类型 说明
1 snCode string 网关唯一标识
2 device 数组 上送的设备集合
3 id string 设备编号
4 name string 设备名称
5 productId string 产品编号
6 properties Object 属性对象
7 propertyId Object 属性Id
8 name string 属性
9 unit string 单位
10 funcId string 功能类型
11 value string 数据值
12 type string 数据类型