comment displaying function

This commit is contained in:
atef 2024-01-29 13:24:25 +01:00
parent 445f7b6434
commit ed5e9fe6dc
1 changed files with 11 additions and 13 deletions

View File

@ -213,24 +213,22 @@ internal static class Program
int nodeIndex = 2; // Starting node number
foreach (var batteryNodeRecord in record.Battery.Devices)
{
var ioStates = batteryNodeRecord.IoStates;
//foreach (var batteryNodeRecord in record.Battery.Devices)
//{
// var ioStates = batteryNodeRecord.IoStates;
batteryNodeRecord.FwVersion.WriteLine(" FwVersion ");
Convert.ToString(ioStates, 2).PadLeft(16, '0').WriteLine($" IoStates Battery node {nodeIndex}");
// batteryNodeRecord.FwVersion.WriteLine(" FwVersion ");
// Convert.ToString(ioStates, 2).PadLeft(16, '0').WriteLine($" IoStates Battery node {nodeIndex}");
batteryNodeRecord.Dc.Current.WriteLine($" Current Battery node {nodeIndex}");
batteryNodeRecord.Dc.Voltage.WriteLine($" Voltage Battery node {nodeIndex}");
("********************************************************").WriteLine();
nodeIndex++;
}
// batteryNodeRecord.Dc.Current.WriteLine($" Current Battery node {nodeIndex}");
// batteryNodeRecord.Dc.Voltage.WriteLine($" Voltage Battery node {nodeIndex}");
// ("********************************************************").WriteLine();
// nodeIndex++;
//}
// record.GridMeter?.ActivePowerExportT1.WriteLine("kWh Import 7008");
// record.GridMeter?.ActivePowerImportT1.WriteLine("kWh Export 7028");
record.GridMeter?.ActivePowerExportT2.WriteLine("Wh Import 6008");
// record.GridMeter?.ActivePowerExportT2.WriteLine("Wh Import 6008");
// record.GridMeter?.ActivePowerImportT2.WriteLine("Wh Export 6028");
// record.GridMeter?.ActivePowerExportT3.WriteLine("Kwh Import 8004");
// record.GridMeter?.ActivePowerImportT3.WriteLine("kWh Export 8014");