模拟设备发送遥测数据
开发中POST
/api/v1/telemetry/datas/simulation请求参数
Body 参数application/json
command
string
命令
mosquitto_pub -h 47.115.210.16 -p 1883 -t "devices/telemetry" -m "{"temperature",:25.5,"humidity":60}" -u "e04f61cd-eb6c-fb99-be8" -i "0"
示例
{
"command": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
string
必需
示例
{
"code": 0,
"message": "string",
"data": "string"
}
最后修改时间: 9 个月前