From 3efb83ecfd058fd3a102085161b9530d949ef545 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 18 Jul 2023 10:51:16 +0200 Subject: [PATCH] aqhome-mqttlog: read all messages available on each loop. --- apps/aqhome-mqttlog/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/aqhome-mqttlog/main.c b/apps/aqhome-mqttlog/main.c index bc4637c..09c6318 100644 --- a/apps/aqhome-mqttlog/main.c +++ b/apps/aqhome-mqttlog/main.c @@ -210,8 +210,7 @@ int _serve(GWEN_DB_NODE *dbArgs) else { GWEN_MSG *msg; - msg=GWEN_MsgEndpoint_TakeFirstReceivedMessage(epTcp); - if (msg) { + while( (msg=GWEN_MsgEndpoint_TakeFirstReceivedMessage(epTcp)) ) { #ifdef FULL_DEBUG DBG_ERROR(NULL, "Received this message:"); GWEN_Text_DumpString((const char*) GWEN_Msg_GetConstBuffer(msg), GWEN_Msg_GetBytesInBuffer(msg), 2);