Add display fail reading error
This commit is contained in:
parent
93d8936430
commit
bd24a725c6
|
@ -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
|
||||
|
|
|
@ -28,7 +28,7 @@ public class EmuMeterDevice: ModbusDevice<EmuMeterRegisters>
|
|||
}
|
||||
catch
|
||||
{
|
||||
"Failed to read data from Inverters".WriteLine();
|
||||
"Failed to read data from EmuMeter".WriteLine();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<AcDcRecord>());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue