diff --git a/Common/lib/HybirdFrameworkDriver.dll b/Common/lib/HybirdFrameworkDriver.dll index 66c5b7a..e3aac9f 100644 Binary files a/Common/lib/HybirdFrameworkDriver.dll and b/Common/lib/HybirdFrameworkDriver.dll differ diff --git a/Service/Charger/Client/ChargerClient.cs b/Service/Charger/Client/ChargerClient.cs index 5e8d4cd..eaaecd5 100644 --- a/Service/Charger/Client/ChargerClient.cs +++ b/Service/Charger/Client/ChargerClient.cs @@ -547,11 +547,6 @@ public class ChargerClient : TcpClient public bool Connect() { base.BaseConnect(); - if (Connected) - { - SendAuth(); - } - return Connected; } diff --git a/Service/Charger/Client/ClientMgr.cs b/Service/Charger/Client/ClientMgr.cs index 543d401..532f094 100644 --- a/Service/Charger/Client/ClientMgr.cs +++ b/Service/Charger/Client/ClientMgr.cs @@ -94,6 +94,7 @@ public static class ClientMgr client.Sn = netInfo.Code; client.BinNo = binInfo?.No; client.BatteryNo = binInfo?.BatteryNo; + client.ConnectedEventHandler += (sender, b) => client.SendAuth(); client.InitBootstrap(netInfo.NetAddr, int.Parse(netInfo.NetPort)); Task.Run(() =>