update the config file sinexcel
This commit is contained in:
parent
6c0271e70c
commit
3b32b8a6dc
|
|
@ -4,10 +4,17 @@ namespace InnovEnergy.App.SinexcelCommunication.DataTypes;
|
||||||
|
|
||||||
public class Configuration
|
public class Configuration
|
||||||
{
|
{
|
||||||
public Double MinimumSoC { get; set; }
|
public Double MinimumSoC { get; set; }
|
||||||
public Double MaximumDischargingCurrent { get; set; }
|
public Double MaximumDischargingCurrent { get; set; }
|
||||||
public Double MaximumChargingCurrent { get; set; }
|
public Double MaximumChargingCurrent { get; set; }
|
||||||
public WorkingMode OperatingPriority { get; set; }
|
public WorkingMode OperatingPriority { get; set; }
|
||||||
public Int16 BatteriesCount { get; set; }
|
public Int16 BatteriesCount { get; set; }
|
||||||
|
public Int16 ClusterNumber { get; set; }
|
||||||
|
public Int16 PvNumber { get; set; }
|
||||||
|
public DateTime StartTimeChargeandDischargeDayandTime { get; set; }
|
||||||
|
public DateTime StopTimeChargeandDischargeDayandTime { get; set; }
|
||||||
|
public Single TimeChargeandDischargePower { get; set; }
|
||||||
|
public Boolean ControlPermission { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,11 @@ public abstract class ConnectionChannel<T> : Channel, IDisposable
|
||||||
_CloseAfterSuccessfulWrite = closeAfterSuccessfulWrite;
|
_CloseAfterSuccessfulWrite = closeAfterSuccessfulWrite;
|
||||||
_CloseAfterException = closeAfterException ?? (_ => true);
|
_CloseAfterException = closeAfterException ?? (_ => true);
|
||||||
}
|
}
|
||||||
|
// 👇 NEW: optional per-connection buffer clear
|
||||||
|
protected virtual void ClearBuffers(T connection)
|
||||||
|
{
|
||||||
|
// default: do nothing
|
||||||
|
}
|
||||||
public override IReadOnlyList<Byte> Read(Int32 nBytes)
|
public override IReadOnlyList<Byte> Read(Int32 nBytes)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
@ -66,7 +70,7 @@ public abstract class ConnectionChannel<T> : Channel, IDisposable
|
||||||
|
|
||||||
|
|
||||||
private T Connection => _Connection ??= Open();
|
private T Connection => _Connection ??= Open();
|
||||||
|
|
||||||
|
|
||||||
private void Close()
|
private void Close()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue