MqttClientConnectServerAsync 方法 |
连接服务器,如果连接失败,请稍候重试。
Connect to the server. If the connection fails, try again later.
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> ConnectServerAsync()
Public Function ConnectServerAsync As Task(Of OperateResult)
public:
Task<OperateResult^>^ ConnectServerAsync()
member ConnectServerAsync : unit -> Task<OperateResult>
返回值
类型:
TaskOperateResult连接是否成功
参见