点击或拖拽改变大小

MqttClient 属性

MqttClient 类型公开以下成员。

属性
  名称说明
公共属性ConnectionOptions
获取当前的连接配置参数信息
Get current connection configuration parameter information
公共属性IsConnected
获取或设置当前的服务器连接是否成功,定时获取本属性可用于实时更新连接状态信息。
Get or set whether the current server connection is successful or not. This property can be obtained regularly and can be used to update the connection status information in real time.
公共属性代码示例LogNet
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出
The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG
(继承自 NetworkBase。)
公共属性SubcribeTopics
获取当前的客户端对象已经订阅的所有的Topic信息
Get all Topic information that the current client object has subscribed to
公共属性代码示例Token
网络类的身份令牌,在hsl协议的模式下会有效,在和设备进行通信的时候是无效的
Network-type identity tokens will be valid in the hsl protocol mode and will not be valid when communicating with the device
(继承自 NetworkBase。)
公共属性UseTimerCheckDropped
获取或设置是否启动定时器去检测当前客户端是否超时掉线。默认为 True
Get or set whether to start the timer to detect whether the current client timeout and disconnection. Default is True
Top
参见