更改字段名称

master
lch 6 months ago
parent 2731fc99b7
commit cd66481c45

@ -36,35 +36,35 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
/// <summary>
///充电机遥信数据
/// </summary>
public UploadRemoteSignalData uploadRemoteSignalData = new UploadRemoteSignalData();
public UploadRemoteSignalData UploadRemoteSignalData = new UploadRemoteSignalData();
/// <summary>
/// 充电机工作状态-从遥信数据包中得到。00H待机 01H工作 02H工作完成 03H充/放电暂停
/// </summary>
public byte workstate { get; set; }
public byte Workstate { get; set; }
/// <summary>
/// 充电机故障-遥信数据包总故障 00H正常、01H故障
/// </summary>
public bool totalError { get; set; }
public bool TotalError { get; set; }
/// <summary>
/// 充电机告警-遥信数据包总告警 00H正常、01H告警
/// </summary>
public bool totalWarning { get; set; }
public bool TotalWarning { get; set; }
/// <summary>
/// 充电机遥测数据
/// </summary>
public UploadTelemetryData uploadTelemetryData = new UploadTelemetryData();
public UploadTelemetryData UploadTelemetryData = new UploadTelemetryData();
/// <summary>
///充电机实时充电功率
/// </summary>
public float realTimeChargePower { get; set; } = 0;
public float RealTimeChargePower { get; set; } = 0;
/// <summary>
/// 心跳-桩状态
/// </summary>
public byte pileState { get; set; }
public byte PileState { get; set; }

@ -21,7 +21,7 @@ namespace Service.Charger.Handler
//心跳存储日志
Log.Info($"receive {msg} from {sn}");
//心跳桩状态
client.pileState = msg.Status;
client.PileState = msg.Status;
//监控平台心跳应答0-正常、1-未注册
HeartBeatRes heartBeatRes = new HeartBeatRes(0);

@ -29,11 +29,11 @@ namespace Service.Charger.Handler
//存储日志
Log.Info($"receive {msg} from {sn}");
client.workstate = msg.WorkStatus;
client.Workstate = msg.WorkStatus;
client.IsCharged = msg.WorkStatus == 1 ? true : false;
client.totalError = msg.TotalError;
client.totalWarning = msg.TotalWarning;
client.uploadRemoteSignalData = msg;
client.TotalError = msg.TotalError;
client.TotalWarning = msg.TotalWarning;
client.UploadRemoteSignalData = msg;
}
else
{

@ -28,9 +28,9 @@ namespace Service.Charger.Handler
//存储日志
Log.Info($"receive {msg} from {sn}");
client.uploadTelemetryData = msg;
client.UploadTelemetryData = msg;
//充电机实时充电功率
client.realTimeChargePower = msg.HighVoltageAcquisitionCurrent * msg.HighVoltageAcquisitionVoltage;
client.RealTimeChargePower = msg.HighVoltageAcquisitionCurrent * msg.HighVoltageAcquisitionVoltage;
}
else
{

Loading…
Cancel
Save