MQTTMSGSET
设置订阅消息的打印模式:AT+MQTTMSGSET
语法规则:
| 命令类型 | 语法 | 返回 | 说明 |
|---|---|---|---|
| 设置命令 | AT+MQTTMSGSET=<mode> |
OK | 成功 |
| ERROR | 失败 | ||
| 查询命令 | AT+MQTTMSGSET? | +MQTTMSGSET:<mode>OK |
|
| 测试命令 | AT+MQTTMSGSET=? | +MQTTMSGSET:(0,1) OK |
参数定义:
| 参数 | 定义 | 取值 | 对取值的说明 |
|---|---|---|---|
<mode> |
消息上报模式 | 0 | 主动上报到串口。有新订阅消息时,上报的URC为:+MSUB:<topic>,<len>,<message> |
| 1 | 缓存模式。有新订阅消息时,上报的URC为:+MSUB:<store_addr>然后用AT+MQTTMSGGET来读消息 |