|
|
@ -95,7 +95,11 @@ public static class ClientMgr
|
|
|
|
client.BinNo = binInfo?.No;
|
|
|
|
client.BinNo = binInfo?.No;
|
|
|
|
client.BatteryNo = binInfo?.BatteryNo;
|
|
|
|
client.BatteryNo = binInfo?.BatteryNo;
|
|
|
|
client.LogName = "Charger" + netInfo.Code;
|
|
|
|
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));
|
|
|
|
client.InitBootstrap(netInfo.NetAddr, int.Parse(netInfo.NetPort));
|
|
|
|
|
|
|
|
|
|
|
|
Task.Run(() =>
|
|
|
|
Task.Run(() =>
|
|
|
|