This commit is contained in:
2025-10-20 14:47:17 +08:00
parent 2e46747ba9
commit 546b894e6b
16 changed files with 917 additions and 141 deletions

View File

@@ -33,6 +33,8 @@ namespace Check.Main.Common
_slaveId = slaveId;
}
public bool IsConnected => _tcpClient != null && _tcpClient.Connected;//10.11添加
public async Task ConnectAsync()
{
await _tcpClient.ConnectAsync(_ip, _port);