MqttSyncClientPool 构造函数 (MqttConnectionOptions, ActionMqttSyncClient) |
通过MQTT连接参数以及自定义的初始化方法来实例化一个对象
Instantiate an object through MQTT connection parameters and custom initialization methods
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public MqttSyncClientPool(
MqttConnectionOptions options,
Action<MqttSyncClient> initialize
)
Public Sub New (
options As MqttConnectionOptions,
initialize As Action(Of MqttSyncClient)
)
public:
MqttSyncClientPool(
MqttConnectionOptions^ options,
Action<MqttSyncClient^>^ initialize
)
new :
options : MqttConnectionOptions *
initialize : Action<MqttSyncClient> -> MqttSyncClientPool
参数
- options
- 类型:HslCommunication.MQTTMqttConnectionOptions
MQTT的连接参数信息 - initialize
- 类型:SystemActionMqttSyncClient
自定义的初始化方法
参见