aqhome-react: periodically check for network file changes and reload if necessary.

This commit is contained in:
Martin Preuss
2024-03-24 14:21:20 +01:00
parent e0476924c1
commit 6f9e20095a
6 changed files with 91 additions and 1 deletions

View File

@@ -90,6 +90,21 @@ int AqHomeReact_GetTimeout(const AQHOME_REACT *aqh)
time_t AqHomeReact_GetLatestNetworkFileTime(const AQHOME_REACT *aqh)
{
return aqh?aqh->latestNetworkFileTime:0;
}
void AqHomeReact_SetLatestNetworkFileTime(AQHOME_REACT *aqh, time_t t)
{
if (aqh)
aqh->latestNetworkFileTime=t;
}
AQHREACT_UNIT *AqHomeReact_GetTimerUnit(const AQHOME_REACT *aqh)
{
return aqh?aqh->timerUnit:NULL;