update Battery deligreen Lib
This commit is contained in:
parent
8db16313e9
commit
bf37840d0d
|
|
@ -4,7 +4,6 @@ namespace InnovEnergy.Lib.Devices.BatteryDeligreen;
|
||||||
|
|
||||||
public class BatteryDeligreenRecords
|
public class BatteryDeligreenRecords
|
||||||
{
|
{
|
||||||
//public required DcBus Dc { get; init; }
|
|
||||||
public required Current Current { get; init; }
|
public required Current Current { get; init; }
|
||||||
public required Voltage Voltage { get; init; }
|
public required Voltage Voltage { get; init; }
|
||||||
public required Percent Soc { get; init; }
|
public required Percent Soc { get; init; }
|
||||||
|
|
@ -28,7 +27,7 @@ public class BatteryDeligreenRecords
|
||||||
// public required Temperature TemperatureCell2 { get; init; }
|
// public required Temperature TemperatureCell2 { get; init; }
|
||||||
// public required Temperature TemperatureCell3 { get; init; }
|
// public required Temperature TemperatureCell3 { get; init; }
|
||||||
// public required Temperature TemperatureCell4 { get; init; }
|
// public required Temperature TemperatureCell4 { get; init; }
|
||||||
// to continue other temperature
|
// to continue other temperature
|
||||||
|
|
||||||
public required IReadOnlyList<BatteryDeligreenRecord> Devices { get; init; }
|
public required IReadOnlyList<BatteryDeligreenRecord> Devices { get; init; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public class TelecommandFrameParser
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check starting byte
|
// Check starting byte
|
||||||
string startingByte = response.Substring(_currentIndex, 2).ToUpper();
|
var startingByte = response.Substring(_currentIndex, 2).ToUpper();
|
||||||
if (startingByte == "7E")
|
if (startingByte == "7E")
|
||||||
{
|
{
|
||||||
// Console.WriteLine($"Starting byte: {startingByte} (Hex)");
|
// Console.WriteLine($"Starting byte: {startingByte} (Hex)");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue