MqttSyncClient 构造函数 (MqttConnectionOptions) |
实例化一个MQTT的同步客户端
Instantiate an MQTT synchronization client
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public MqttSyncClient(
MqttConnectionOptions options
)
Public Sub New (
options As MqttConnectionOptions
)
public:
MqttSyncClient(
MqttConnectionOptions^ options
)
new :
options : MqttConnectionOptions -> MqttSyncClient
参数
- options
- 类型:HslCommunication.MQTTMqttConnectionOptions
连接的参数信息,可以指定IP地址,端口,账户名,密码,客户端ID信息
参见