连接✅
GET
/api/v1/device/connect/info返回结构体
请求参数
Query 参数
device_id
string
可选
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
协议端口
string
必需
设备上报遥测主题
string
必需
设备订阅遥测主题
string
必需
设备上报数据示例
string
必需
示例
{
"code": 200,
"message": "SUCCESS",
"data": {
"协议端口": "1883",
"设备上报遥测主题": "devices/telemetry",
"设备订阅遥测主题": "devices/telemetry/{device_number}/{message_id}",
"设备上报数据示例": "{\"switch\":1}"
}
}
最后修改时间: 1 年前