From 358b1f0ec13a9cf827d54e9d9c235a226dbe6f09 Mon Sep 17 00:00:00 2001 From: atef Date: Wed, 4 Oct 2023 15:19:41 +0200 Subject: [PATCH] Add System Log to the statusRecord --- csharp/App/SaliMax/src/Ess/StatusRecord.cs | 3 ++- csharp/App/SaliMax/src/Ess/SystemLog.cs | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 csharp/App/SaliMax/src/Ess/SystemLog.cs diff --git a/csharp/App/SaliMax/src/Ess/StatusRecord.cs b/csharp/App/SaliMax/src/Ess/StatusRecord.cs index fde5998e1..0d0a1da63 100644 --- a/csharp/App/SaliMax/src/Ess/StatusRecord.cs +++ b/csharp/App/SaliMax/src/Ess/StatusRecord.cs @@ -25,7 +25,8 @@ public record StatusRecord public required RelaysRecord? Relays { get; init; } public required AmptStatus? PvOnDc { get; init; } public required Config Config { get; init; } + public required SystemLog Log { get; set; } // TODO: init only public required EssControl EssControl { get; set; } // TODO: init only public required StateMachine StateMachine { get; init; } -} +} \ No newline at end of file diff --git a/csharp/App/SaliMax/src/Ess/SystemLog.cs b/csharp/App/SaliMax/src/Ess/SystemLog.cs new file mode 100644 index 000000000..ea4ca0763 --- /dev/null +++ b/csharp/App/SaliMax/src/Ess/SystemLog.cs @@ -0,0 +1,8 @@ +namespace InnovEnergy.App.SaliMax.Ess; + +public record SystemLog +{ + public required String? Message { get; init; } + public required LedState Led { get; init; } + +} \ No newline at end of file