修改设备
测试中PUT
/api/open/iot-device/devicemanage/v2/device/最后修改时间: 5 个月前
责任人: 未设置
修改设备并返回设备基础信息
请求参数
Body 参数application/json
deviceId
string
设备编码
deviceName
string
设备名称
description
string
设备描述
示例
{
"deviceId": "string",
"deviceName": "string",
"description": "string"
}
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
deviceId
string
设备编码
deviceName
string
设备名称
productId
string
产品编码
productName
string
产品名称
deviceSecretKey
string
设备密钥
nodeType
string
节点类型
direct-device:直连设备 gateway-device:网关设备 gateway-sub-device:网关子设备
onlineState
number
在线状态
0:未激活 1:在线 2:离线 3:已停用
runningState
number
启停状态
0:停用 1:启用
description
string
设备描述
示例
{
"deviceId": "string",
"deviceName": "string",
"productId": "string",
"productName": "string",
"deviceSecretKey": "string",
"nodeType": "string",
"onlineState": 0,
"runningState": 0,
"description": "string"
}
最后修改时间: 5 个月前