API前缀:详见简介
Path: /manage/device
Method: PUT
接口描述:
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
description | text | 否 | 描述 | |
deviceName | text | 是 | 设备名(UUID序列号) | |
deviceStatus | text | 否 | 设备状态 | |
deviceTypeCode | text | 否 | 设备类型CODE | |
height | text | 否 | 高度 | |
latitude | text | 否 | ||
longitude | text | 否 | ||
productKey | text | 是 | ||
access_token | text | 是 | 访问令牌,获取步骤详见 获取或者刷新token | |
houseNumber | text | 否 | 户号 | |
meterNumber | text | 否 | 表计编号 | |
newBattery | text | 是 | 是否是新电池 | |
batteryCapacity | text | 是 | 电池容量 | |
address | text | 否 | 地址 | |
unit | text | 否 | 单位 | |
magnification | text | 否 | 倍率 |
{
"code":200,
"msg":"OK",
"data":{
"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
}
}