diff --git a/Service/Charger/Client/ClientMgr.cs b/Service/Charger/Client/ClientMgr.cs index d6cc724..9d0b752 100644 --- a/Service/Charger/Client/ClientMgr.cs +++ b/Service/Charger/Client/ClientMgr.cs @@ -95,7 +95,11 @@ public static class ClientMgr client.BinNo = binInfo?.No; client.BatteryNo = binInfo?.BatteryNo; client.LogName = "Charger" + netInfo.Code; - client.ConnectedEventHandler += (sender, b) => client.SendAuth(); + client.ConnectedEventHandler += (sender, b) => + { + client.SessionAttr(netInfo.Code, netInfo.DestAddr); + client.SendAuth(); + }; client.InitBootstrap(netInfo.NetAddr, int.Parse(netInfo.NetPort)); Task.Run(() =>