Decreased verbosity, fixed broker connection setup.

This commit is contained in:
Martin Preuss
2023-10-07 23:06:31 +02:00
parent d1f7a6b730
commit 077b367299
12 changed files with 57 additions and 42 deletions

View File

@@ -28,6 +28,8 @@
#endif
#define DISABLE_DEBUGLOG
//#define WRITE_INTERVAL_IN_SECS (5*60)
@@ -151,13 +153,13 @@ void _runService(AQHOME_DATA *aqh)
now=time(NULL);
if (((int)difftime(now, timeLastConnectionCleanup))>CONNCLEAN_INTERVAL_IN_SECS) {
DBG_INFO(NULL, "Cleanup connections");
DBG_DEBUG(NULL, "Cleanup connections");
GWEN_MsgEndpoint_RemoveUnconnectedAndEmptyChildren(AqHomeData_GetIpcdEndpoint(aqh));
timeLastConnectionCleanup=now;
}
if (((int)difftime(now, timeLastWrite))>WRITE_INTERVAL_IN_SECS) {
DBG_INFO(NULL, "Write time");
DBG_DEBUG(NULL, "Write time");
_writeCurrentState(aqh);
timeLastWrite=now;
}