点击或拖拽改变大小

MqttClientApplicationMessage 属性

MqttClientApplicationMessage 类型公开以下成员。

属性
  名称说明
公共属性ClientId
客户端的Id信息
Client Id information
公共属性CreateTime
当前消息的生成时间
The generation time of the current message
公共属性IsCancelPublish
获取或设置当前的消息是否取消发布,默认False,也就是发布出去
Get or set whether the current message is unpublished, the default is False, which means it is published
公共属性MsgID
当前消息的ID信息,在Qos大于0的时候,才是有值的
公共属性Payload
有效载荷包含将被发布的应用消息。数据的内容和格式是应用特定的。
The payload contains application messages to be published. The content and format of the data is application specific.
(继承自 MqttApplicationMessage。)
公共属性QualityOfServiceLevel
这个字段表示应用消息分发的服务质量等级保证。分为,最多一次,最少一次,正好一次,只发不推送。
This field indicates the quality of service level guarantee for application message distribution. Divided into, at most once, at least once, exactly once
(继承自 MqttApplicationMessage。)
公共属性Retain
该消息是否在服务器端进行保留,详细的说明参照文档的备注
Whether the message is retained on the server. For details, refer to the remarks of the document.
(继承自 MqttApplicationMessage。)
公共属性Topic
主题名(Topic Name)用于识别有效载荷数据应该被发布到哪一个信息通道。
The Topic Name is used to identify which information channel the payload data should be published to.
(继承自 MqttApplicationMessage。)
公共属性UserName
当前的客户端的用户名
Username of the current client
Top
参见