update the config file sinexcel

This commit is contained in:
atef 2026-02-13 09:40:21 +01:00
parent 6c0271e70c
commit 3b32b8a6dc
2 changed files with 18 additions and 7 deletions

View File

@ -9,5 +9,12 @@ public class Configuration
public Double MaximumChargingCurrent { get; set; }
public WorkingMode OperatingPriority { 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; }
}

View File

@ -22,7 +22,11 @@ public abstract class ConnectionChannel<T> : Channel, IDisposable
_CloseAfterSuccessfulWrite = closeAfterSuccessfulWrite;
_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)
{
try