NetworkDoubleBaseConnectServer 方法 (MqttClient, String, String) |
使用一个MQTT中转服务器来连接设备对象,并进行相关的读取操作
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult ConnectServer(
MqttClient mqttClient,
string readTopic,
string writeTopic
)
Public Function ConnectServer (
mqttClient As MqttClient,
readTopic As String,
writeTopic As String
) As OperateResult
public:
OperateResult^ ConnectServer(
MqttClient^ mqttClient,
String^ readTopic,
String^ writeTopic
)
member ConnectServer :
mqttClient : MqttClient *
readTopic : string *
writeTopic : string -> OperateResult
参数
- mqttClient
- 类型:HslCommunication.MQTTMqttClient
MQTT客户端信息 - readTopic
- 类型:SystemString
获取数据的主题 - writeTopic
- 类型:SystemString
写入数据的主题信息
返回值
类型:
OperateResult是否成功
参见