|
|
|
@ -176,18 +176,6 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
|
|
|
|
|
{
|
|
|
|
|
[1]=new ChargerPile(),
|
|
|
|
|
[2]=new ChargerPile(),
|
|
|
|
|
[3]=new ChargerPile(),
|
|
|
|
|
[4]=new ChargerPile(),
|
|
|
|
|
[5]=new ChargerPile(),
|
|
|
|
|
[6]=new ChargerPile(),
|
|
|
|
|
[7]=new ChargerPile(),
|
|
|
|
|
[8]=new ChargerPile(),
|
|
|
|
|
[9]=new ChargerPile(),
|
|
|
|
|
[10]=new ChargerPile(),
|
|
|
|
|
[11]=new ChargerPile(),
|
|
|
|
|
[12]=new ChargerPile(),
|
|
|
|
|
[13]=new ChargerPile(),
|
|
|
|
|
[14]=new ChargerPile(),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -596,11 +584,11 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
|
|
|
|
|
/// <param name="pn"></param>
|
|
|
|
|
/// <param name="stopReason"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public Result<string> SendStopOutCharger(byte pn, byte stopReason)
|
|
|
|
|
public Result<bool> SendStopOutCharger(byte pn, byte stopReason)
|
|
|
|
|
{
|
|
|
|
|
if (!Connected)
|
|
|
|
|
{
|
|
|
|
|
return Result<string>.Fail($"充电机{BinNo}未连接");
|
|
|
|
|
return Result<bool>.Fail($"充电机{BinNo}未连接");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Log().Info(
|
|
|
|
@ -608,7 +596,7 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
|
|
|
|
|
PileStopCharge pileStopCharge = new PileStopCharge(pn, stopReason);
|
|
|
|
|
this.Channel.WriteAndFlushAsync(pileStopCharge);
|
|
|
|
|
|
|
|
|
|
return Result<string>.Success();
|
|
|
|
|
return Result<bool>.Success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|