点击或拖拽改变大小

MqttPublishMessage 类

Mqtt发送的消息封装对象,是对 MqttApplicationMessage 对象的封装,添加了序号,还有是否重发的信息
The message encapsulation object sent by Mqtt is an encapsulation of the MqttApplicationMessage object, with the serial number added, and whether to retransmit
继承层次
SystemObject
  HslCommunication.MQTTMqttPublishMessage

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
public class MqttPublishMessage

MqttPublishMessage 类型公开以下成员。

构造函数
  名称说明
公共方法MqttPublishMessage
实例化一个默认的对象
Instantiate a default object
Top
属性
  名称说明
公共属性Identifier
当前的消息的标识符,当质量等级为0的时候,不需要重发以及考虑标识情况
The identifier of the current message, when the quality level is 0, do not need to retransmit and consider the identification situation
公共属性IsSendFirstTime
是否第一次发送数据信息
Whether to send data information for the first time
公共属性Message
当前发布消息携带的mqtt的应用消息,包含主题,消息等级,负载。
The application message of mqtt carried in the current published message, including the subject, message level, and load.
Top
方法
  名称说明
公共方法Equals
Determines whether the specified object is equal to the current object.
(继承自 Object。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Serves as the default hash function.
(继承自 Object。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法ToString
Returns a string that represents the current object.
(继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见