58 lines
1.5 KiB
C
58 lines
1.5 KiB
C
/****************************************************************************
|
|
* This file is part of the project AqHome.
|
|
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
|
|
*
|
|
* The license for this file can be found in the file COPYING which you
|
|
* should have received along with this file.
|
|
****************************************************************************/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
#include "./loop.h"
|
|
#include "./loop_ipc.h"
|
|
#include "./loop_mqtt.h"
|
|
#include "./c_setdata.h"
|
|
#include "./aqhome_mqtt_p.h"
|
|
|
|
#include <gwenhywfar/gwenhywfar.h>
|
|
#include <gwenhywfar/debug.h>
|
|
#include <gwenhywfar/endpoint.h>
|
|
#include <gwenhywfar/text.h>
|
|
#include <gwenhywfar/json_read.h>
|
|
#include <gwenhywfar/db.h>
|
|
|
|
|
|
//#define FULL_DEBUG
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* forward declarations
|
|
* ------------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------------------------------------------
|
|
* implementations
|
|
* ------------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
void AqHomeMqttLog_Loop(AQHOME_MQTT *aqh, int timeoutInMsecs)
|
|
{
|
|
if (aqh) {
|
|
GWEN_MsgEndpoint_ChildrenIoLoop(aqh->rootEndpoint, timeoutInMsecs);
|
|
AqHomeMqttLog_ReadAndHandleMqttMessages(aqh);
|
|
AqHomeMqttLog_ReadAndHandleIpcMessages(aqh);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|