NetworkServerBaseConnectHslAlientClientAsync 方法 |
创建一个指定的异形客户端连接,使用Hsl协议来发送注册包
Create a specified profiled client connection and use the Hsl protocol to send registration packets
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> ConnectHslAlientClientAsync(
string ipAddress,
int port,
string dtuId,
string password = ""
)
Public Function ConnectHslAlientClientAsync (
ipAddress As String,
port As Integer,
dtuId As String,
Optional password As String = ""
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ ConnectHslAlientClientAsync(
String^ ipAddress,
int port,
String^ dtuId,
String^ password = L""
)
member ConnectHslAlientClientAsync :
ipAddress : string *
port : int *
dtuId : string *
?password : string
(* Defaults:
let _password = defaultArg password ""
*)
-> Task<OperateResult>
参数
- ipAddress
- 类型:SystemString
Ip地址 - port
- 类型:SystemInt32
端口号 - dtuId
- 类型:SystemString
设备唯一ID号,最长11 - password (Optional)
- 类型:SystemString
密码信息
返回值
类型:
TaskOperateResult是否成功连接
参见