You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
943 B
943 B
消息处理接口
本模块共 1 个接口。源文件:api.json。
快速索引
| 接口名称 | 方法 | 路径 | 用途 |
|---|---|---|---|
| MQTT消息发送 | GET | /gd_dataserver/business/mqtt/sendMqttMsg |
向指定主题发送MQTT消息 |
接口详情
MQTT消息发送
- 用途: 向指定主题发送MQTT消息
- 请求:
GET /gd_dataserver/business/mqtt/sendMqttMsg - 鉴权:
X-Access-Token(以接口定义为准) - operationId:
sendMqttMsgUsingGET
参数:
| 字段 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|---|---|---|---|---|
| topic | query | 是 | string | MQTT主题 | - |
| data | query | 是 | string | 消息内容(JSON格式) | - |
响应:
| 状态码 | 说明 | 响应模型 |
|---|---|---|
| 200 | OK | /: object<string, object> |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |