MqttRpcDevice 构造函数 (MqttConnectionOptions, String) |
实例化一个MQTT的同步客户端
Instantiate an MQTT synchronization client
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public MqttRpcDevice(
MqttConnectionOptions options,
string topic = null
)
Public Sub New (
options As MqttConnectionOptions,
Optional topic As String = Nothing
)
public:
MqttRpcDevice(
MqttConnectionOptions^ options,
String^ topic = nullptr
)
new :
options : MqttConnectionOptions *
?topic : string
(* Defaults:
let _topic = defaultArg topic null
*)
-> MqttRpcDevice
参数
- options
- 类型:HslCommunication.MQTTMqttConnectionOptions
连接的参数信息,可以指定IP地址,端口,账户名,密码,客户端ID信息 - topic (Optional)
- 类型:SystemString
设备关联的主题信息
参见