public class MqttPublishMessage extends Object
MqttApplicationMessage 对象的封装,添加了序号,还有是否重发的信息MqttApplicationMessage object, with the serial number added, and whether to retransmit| 限定符和类型 | 字段和说明 |
|---|---|
int |
Identifier
当前的消息的标识符,当质量等级为0的时候,不需要重发以及考虑标识情况
The identifier of the current message, when the quality level is 0, do not need to retransmit and consider the identification situation |
boolean |
IsSendFirstTime
是否第一次发送数据信息
Whether to send data information for the first time |
MqttApplicationMessage |
Message
当前发布消息携带的mqtt的应用消息,包含主题,消息等级,负载。
|
| 构造器和说明 |
|---|
MqttPublishMessage()
实例化一个默认的对象
Instantiate a default object |
public boolean IsSendFirstTime
public int Identifier
public MqttApplicationMessage Message
Copyright © 2022. All rights reserved.