智读表API文档

查询产品下的设备列表

基本信息

API前缀:详见简介

Path: /manage/device

Method: GET

接口描述: 这个接口已过时,新接口参考下面/manage/v3/device

请求参数

Query

参数名称 是否必须 示例 备注
currentPage 当前页
pageSize 每页大小
productKey 产品KEY(二级目录)
access_token 246e5b20-8eb7-4c6d-8d2f-8652a4b2842b 访问令牌,获取步骤详见 获取或者刷新token

返回数据

{
    "code": 200,
    "msg": "OK",
    "data": {
        "total": 1,
        "list": [
            {
                    "id": 103,    //设备id                       
                    "deviceName": "542a436b9c3b02f3", //设备名称(UUID序列号)
                    "deviceTypeCode": 263,            //设备类型code
                    "productId": 2,                   //产品id
                    "deviceSecret": "COLsZpbqZj7lQxuRLVKQZdWBg55rZm2t",//密钥
                    "productKey": "ZOtDKJz6YLm",                       //产品key
                    "gmtCreate": "2019-03-08 21:33:04",                //创建时间
                    "deviceStatus": 2,                                 //设备状态
                    "longitude": null,                                  //经度
                    "latitude": null,                                   //纬度
                    "height": null,                                     //高度
                    "networkType": 5,                                   //网络类型
                    "description": "test_sever",                        //设备描述
                    "sysVersion": "3.0.4",                              //系统版本号(固件版本号)
                    "electricity": null,                                //电量
                    "requestId": null,                                  //请求id
                    "periodId": null,                                   //周期id
                    "lastTime": null,                 
                    "lastLogin": "2019-03-08 23:22:24",                 //上次登录时间
                    "signal": null,                                     //信号
                    "powerSupply": false,                               //供电方式,0电池供电,1电源供电
                    "newBattery": 1,                                    //旧电池0,新电池1,电源供电2
                    "batteryCapacity": 3800,                            //电池容量
                    "meterNumber": null,                                //表计编号
                    "houseNumber": null,                                //户号
                    "houseName": null,                                  //户名
                    "caliber": null,                                    //口径
                    "meterLocationNumber": null,                        //表计位号
                    "address": null,                                    //安装地址
                    "maxCorrectValue": 500,
                    "minCorrectValue": 10,
                    "value": null,                                      
                    "cValue": null,                                     
                    "localIncrement": null,
                    "cloudIncrement": null,
                    "autoCorrecte": false,
                    "repairStatus": "1",
                    "dataServerIp": "0.0.0.0",
                    "dataServerPort": 0,
                    "recentPicPath": null,
                    "energyId": null,
                    "functionCode": null,
                    "buildingId": null,
                    "dataFrom": 0,
                    "unit": null,
                    "magnification": null,
                    "dataBeanList": null,
                    "deviceMotor": null
                  }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "size": 3,
        "startRow": 1,
        "endRow": 3,
        "pages": 1,
        "prePage": 0,
        "nextPage": 0,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ],
        "navigateFirstPage": 1,
        "navigateLastPage": 1,
        "firstPage": 1,
        "lastPage": 1
    }
}

查询产品下的设备列表

API前缀:详见简介

Path: /manage/v3/device

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
currentPage 当前页
pageSize 每页大小
productKey 产品KEY(二级目录)
access_token 246e5b20-8eb7-4c6d-8d2f-8652a4b2842b 访问令牌,获取步骤详见 获取或者刷新token

返回数据

{
    "code": 200,
    "msg": "OK",
    "data": {
        "total": 1,
        "list": [
            {
                            "id":33252,//设备id 
                            "deviceName":"8648230902307",//设备名(UUID序列号)
                            "deviceTypeCode":300,//设备类型code
                            "productId":2241,//产品id
                            "deviceSecret":"o3THPGqecPy6yfljksqWyKBt0qFz",//密钥
                            "productKey":"yoSltjO4SZ",//产品key
                            "gmtCreate":"2021-08-16 21:15:16",
                            "deviceStatus":2,//设备状态
                            "longitude":null,//经度
                            "latitude":null,//纬度
                            "height":null,//高度
                            "networkType":13,//网络类型
                            "description":"二楼水管道(凉水)",//设备描述
                            "sysVersion":"5.4.2",//ota版本号
                            "electricity":92.59,//电量
                            "requestId":"5a9d70c0-0906-4c31-b0fb-dcb697769038",//请求id
                            "periodId":"ea3198b7-9dd8-47b3-82ab-36b50600d015",//周期id
                            "lastTime":"2022-03-08 17:39:13",
                            "lastLogin":null,//上次登录时间
                            "signal":"-112.0",//信号值
                            "powerSupply":false,//供电方式,0电池供电,1电源供电
                            "newBattery":0,//旧电池0,新电池1,电源供电2
                            "batteryCapacity":8500,//电池容量
                            "meterNumber":null,//表计编号
                            "houseNumber":"二楼水管道(凉水)",//户号
                            "houseName":null,//户名
                            "caliber":null,//口径
                            "meterLocationNumber":null,//表计位号
                            "address":null,//安装地址
                            "maxCorrectValue":-1,
                            "minCorrectValue":-1,
                            "value":201.1,//本地识别值
                            "cValue":201.1,//云端识别值
                            "localIncrement":0.2,//本地增量
                            "cloudIncrement":0.3,//云端增量
                            "lightValue":null,
                            "autoCorrecte":false,
                            "repairStatus":"0",
                            "dataServerIp":"0.0.0.0",
                            "dataServerPort":0,
                            "recentPicPath":"https://www.smartmetering.top/staticfile/pic/yoSltOjO4SZ/864823049902307/2022/3/8/1642353_s.jpg",//图片路径
                            "energyId":null,
                            "functionCode":null,
                            "buildingId":null,
                            "dataFrom":0,
                            "unit":null,
                            "magnification":"1",
                            "useCode":1,
                            "fontCode":null,
                            "paramList":[
            
                            ],
                            "dataBeanList":null,
                            "deviceMotor":null
                        }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "size": 3,
        "startRow": 1,
        "endRow": 3,
        "pages": 1,
        "prePage": 0,
        "nextPage": 0,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ],
        "navigateFirstPage": 1,
        "navigateLastPage": 1,
        "firstPage": 1,
        "lastPage": 1
    }
}