mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-05 20:33:38 +01:00
Added method to detect whether an inverter is reachable
This commit is contained in:
@@ -49,6 +49,11 @@ bool InverterAbstract::isProducing()
|
||||
return Statistics()->getChannelFieldValue(CH0, FLD_PAC) > 0;
|
||||
}
|
||||
|
||||
bool InverterAbstract::isReachable()
|
||||
{
|
||||
return Statistics()->getRxFailureCount() <= MAX_ONLINE_FAILURE_COUNT;
|
||||
}
|
||||
|
||||
AlarmLogParser* InverterAbstract::EventLog()
|
||||
{
|
||||
return _alarmLogParser.get();
|
||||
|
||||
Reference in New Issue
Block a user