diff --git a/csharp/App/SaliMax/src/SystemConfig/Config.cs b/csharp/App/SaliMax/src/SystemConfig/Config.cs index c75a188d9..294cf1f5d 100644 --- a/csharp/App/SaliMax/src/SystemConfig/Config.cs +++ b/csharp/App/SaliMax/src/SystemConfig/Config.cs @@ -75,7 +75,15 @@ public class Config //TODO: let IE choose from config files (Json) and connect t MinDcBusVoltage = 690, ReferenceDcBusVoltage = 750, MaxDcBusVoltage = 810, - S3 = null, // TODO + S3 = new() + { + Bucket = "saliomameiringen", + Region = "sos-ch-dk-2", + Provider = "exo.io", + ContentType = "text/plain; charset=utf-8", + Key = "EXO2bf0cbd97fbfa75aa36ed46f", + Secret = "Bn1CDPqOG-XpDSbYjfIJxojcHTm391vZTc8z8l_fEPs" + }, Devices = new () { RelaysIp = new() { Host = "10.0.1.1", Port = 502}, @@ -85,7 +93,7 @@ public class Config //TODO: let IE choose from config files (Json) and connect t IslandBusLoadMeterIp = new() { Host = "10.0.4.2", Port = 502}, AmptIp = new() { Host = "10.0.5.1", Port = 502}, BatteryIp = new() { Host = "localhost", Port = 6855}, - BatteryNodes = new []{ 2, 3, 4, 5, 6 }, + BatteryNodes = new []{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, }, }; #endif diff --git a/csharp/Lib/Devices/EmuMeter/EmuMeterDevice.cs b/csharp/Lib/Devices/EmuMeter/EmuMeterDevice.cs index 80c460a8d..aab4ca0fd 100644 --- a/csharp/Lib/Devices/EmuMeter/EmuMeterDevice.cs +++ b/csharp/Lib/Devices/EmuMeter/EmuMeterDevice.cs @@ -28,7 +28,7 @@ public class EmuMeterDevice: ModbusDevice } catch { - "Failed to read data from Inverters".WriteLine(); + "Failed to read data from EmuMeter".WriteLine(); return null; } } diff --git a/csharp/Lib/Devices/Trumpf/TruConvertAc/TruConvertAcDcDevices.cs b/csharp/Lib/Devices/Trumpf/TruConvertAc/TruConvertAcDcDevices.cs index 8a049cbb8..31cea2131 100644 --- a/csharp/Lib/Devices/Trumpf/TruConvertAc/TruConvertAcDcDevices.cs +++ b/csharp/Lib/Devices/Trumpf/TruConvertAc/TruConvertAcDcDevices.cs @@ -47,8 +47,10 @@ public class TruConvertAcDcDevices return new AcDcDevicesRecord(scStatus, acDcRecords); } - catch + catch (Exception e) { + Console.WriteLine( "Failed to read AcDc data \n"+ e.Message ); + // TODO: log return new AcDcDevicesRecord(null, Array.Empty()); } }