HslCommunication.MQTT 命名空间 |
[缺少 "N:HslCommunication.MQTT" 的 <summary> 文档]
类 | 说明 | |
---|---|---|
IMqttSyncConnector |
关于MqttSyncClient实现的接口IConnector,从而实现了数据连接池的操作信息
| |
MqttApplicationMessage |
Mqtt的一次完整消息内容,包含主题,负载数据,消息等级。 Mqtt's complete message content, including subject, payload data, message level. | |
MqttClient |
Mqtt协议的客户端实现,支持订阅消息,发布消息,详细的使用例子参考api文档 The client implementation of the Mqtt protocol supports subscription messages and publishing messages. For detailed usage examples, refer to the api documentation. | |
MqttClientApplicationMessage |
来自客户端的一次消息的内容,当前类主要是在MQTT的服务端进行使用 The content of a message from the client. The current class is mainly used on the MQTT server | |
MqttConnectionOptions |
连接MQTT服务器的一些参数信息,适用MqttClient消息发布订阅客户端以及MqttSyncClient同步请求客户端。 Some parameter information for connecting to the MQTT server is applicable to the MqttClient message publishing and subscription client and the MqttSyncClient synchronization request client. | |
MqttControlMessage |
定义了Mqtt的相关的控制报文的信息
| |
MqttCredential |
Mqtt协议的验证对象,包含用户名和密码 Authentication object of Mqtt protocol, including username and password | |
MqttHelper |
Mqtt协议的辅助类,提供了一些协议相关的基础方法,方便客户端和服务器端一起调用。 The auxiliary class of the Mqtt protocol provides some protocol-related basic methods for the client and server to call together. | |
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 | |
MqttRpcApiInfo |
Mqtt的同步网络服务的单Api信息描述类 Single Api information description class of Mqtt's synchronous network service | |
MqttRpcDevice |
基于MRPC实现的远程设备访问的接口,实现了和基础PLC一样的访问功能,适用的设备为 MqttServer 将PLC实际的通信对象注册为 RPC 接口服务。 The interface for remote device access based on MRPC implements the same access function as the basic PLC. The applicable device is MqttServer to register the actual communication object of the PLC as an RPC interface service. | |
MqttServer |
一个Mqtt的服务器类对象,本服务器支持发布订阅操作,支持从服务器强制推送数据,支持往指定的客户端推送,支持基于一问一答的远程过程调用(RPC)的数据交互,支持文件上传下载。根据这些功能从而定制化出满足各个场景的服务器,详细的使用说明可以参见代码api文档示例。 An Mqtt server class object. This server supports publish and subscribe operations, supports forced push data from the server, supports push to designated clients, supports data interaction based on one-question-one-answer remote procedure calls (RPC), and supports file upload and download . According to these functions, the server can be customized to meet various scenarios. For detailed instructions, please refer to the code api document example. | |
MqttSession |
Mqtt的会话信息,包含了一些基本的信息内容,客户端的IP地址及端口,Client ID,用户名,活动时间,是否允许发布数据等等 Mqtt's session information includes some basic information content, the client's IP address and port, Client ID, user name, activity time, whether it is allowed to publish data, etc. | |
MqttSessionInfo |
用于客户端获取服务器会话状态监视数据的类
| |
MqttSubscribeMessage |
订阅的消息类,用于客户端向服务器请求订阅的信息 Subscribed message class, used by the client to request subscription information from the server | |
MqttSyncClient |
基于MQTT协议的同步访问的客户端程序,支持以同步的方式访问服务器的数据信息,并及时的反馈结果,当服务器启动文件功能时,也支持文件的上传,下载,删除操作等。 The client program based on MQTT protocol for synchronous access supports synchronous access to the server's data information and timely feedback of results, When the server starts the file function, it also supports file upload, download, and delete operations. | |
MqttSyncClientPool | [商业授权] MqttSyncClient客户端的连接池类对象,用于共享当前的连接池,合理的动态调整连接对象,然后进行高效通信的操作,默认连接数无限大。 [Authorization] The connection pool class object of the MqttSyncClient is used to share the current connection pool, reasonably dynamically adjust the connection object, and then perform efficient communication operations, The default number of connections is unlimited | |
SubscribeTopic |
订阅的主题信息 Subscribed topic information |
委托 | 说明 | |
---|---|---|
MqttClientMqttMessageReceiveDelegate |
当接收到Mqtt订阅的信息的时候触发 Triggered when receiving Mqtt subscription information | |
MqttClientOnClientConnectedDelegate |
连接服务器成功的委托 Connection server successfully delegated | |
MqttServerClientVerificationDelegate |
验证的委托
| |
MqttServerFileChangedDelegate |
文件变化的委托信息
| |
MqttServerFileOperateVerificationDelegate |
当客户端进行文件操作时,校验客户端合法性的委托,操作码具体查看的常量值 When client performing file operations, verify the legitimacy of the client, and check the constant value of for the operation code. | |
MqttServerOnClientApplicationMessageReceiveDelegate |
Mqtt的消息收到委托
| |
MqttServerOnClientConnectedDelegate |
当前mqtt客户端连接上服务器的事件委托
|
枚举 | 说明 | |
---|---|---|
MqttQualityOfServiceLevel |
Mqtt消息的质量等级 Mqtt message quality level |