Add number of strings

This commit is contained in:
atef 2024-06-10 14:59:42 +02:00
parent 63dc832a1f
commit 1ad2e79be4
2 changed files with 5 additions and 3 deletions

View File

@ -83,6 +83,7 @@ public class AmptDevices
return new AmptStatus return new AmptStatus
{ {
Dc = dc, Dc = dc,
NbrOfStrings = nStringOptimizers,
Strings = strings, Strings = strings,
DcWh = dailyOutputEnergy DcWh = dailyOutputEnergy
}; };

View File

@ -5,8 +5,9 @@ namespace InnovEnergy.Lib.Devices.AMPT;
public class AmptStatus : IMppt public class AmptStatus : IMppt
{ {
public required DcBus Dc { get; init; } public required DcBus Dc { get; init; }
public required IReadOnlyList<DcBus> Strings { get; init; } public required UInt16 NbrOfStrings { get; init; }
public required Double DcWh { get; init; } //Daily integrated string output energy in Wh public required IReadOnlyList<DcBus> Strings { get; init; }
public required Double DcWh { get; init; } //Daily integrated string output energy in Wh
} }