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等级进行输出 (继承自 NetworkBase。)The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG | |
SubcribeTopics |
获取当前的客户端对象已经订阅的所有的Topic信息 Get all Topic information that the current client object has subscribed to | |
Tag |
获取或设置当前客户端关联的自定义的对象内容 Gets or sets the custom object content associated with the current client | |
Token |
网络类的身份令牌,在hsl协议的模式下会有效,在和设备进行通信的时候是无效的 (继承自 NetworkBase。)Network-type identity tokens will be valid in the hsl protocol mode and will not be valid when communicating with the device | |
UseTimerCheckDropped |
获取或设置是否启动定时器去检测当前客户端是否超时掉线。默认为 True Get or set whether to start the timer to detect whether the current client timeout and disconnection. Default is True |