CommunicationServerConnectHslAlientClient 方法 |
创建一个指定的异形客户端连接,使用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 void ConnectHslAlientClient(
string ipAddress,
int port,
string dtuId,
string password = "",
bool needAckResult = true
)
Public Sub ConnectHslAlientClient (
ipAddress As String,
port As Integer,
dtuId As String,
Optional password As String = "",
Optional needAckResult As Boolean = true
)
public:
void ConnectHslAlientClient(
String^ ipAddress,
int port,
String^ dtuId,
String^ password = L"",
bool needAckResult = true
)
member ConnectHslAlientClient :
ipAddress : string *
port : int *
dtuId : string *
?password : string *
?needAckResult : bool
(* Defaults:
let _password = defaultArg password ""
let _needAckResult = defaultArg needAckResult true
*)
-> unit
参数
- ipAddress
- 类型:SystemString
Ip地址 - port
- 类型:SystemInt32
端口号 - dtuId
- 类型:SystemString
设备唯一ID号,最长11 - password (Optional)
- 类型:SystemString
密码信息 - needAckResult (Optional)
- 类型:SystemBoolean
是否需要返回注册结果报文
返回值
类型:
是否成功连接
参见