Hoymiles Lib: Added flags to inverter to enable/disable polling and commands to the inverter

This commit is contained in:
Thomas Basler
2023-02-18 15:51:46 +01:00
parent 6a6165e8c5
commit 7da782c4ef
3 changed files with 57 additions and 0 deletions

View File

@@ -75,6 +75,26 @@ bool InverterAbstract::isReachable()
return Statistics()->getRxFailureCount() <= MAX_ONLINE_FAILURE_COUNT;
}
void InverterAbstract::setEnablePolling(bool enabled)
{
_enablePolling = enabled;
}
bool InverterAbstract::getEnablePolling()
{
return _enablePolling;
}
void InverterAbstract::setEnableCommands(bool enabled)
{
_enableCommands = enabled;
}
bool InverterAbstract::getEnableCommands()
{
return _enableCommands;
}
AlarmLogParser* InverterAbstract::EventLog()
{
return _alarmLogParser.get();