aqhome-mqttlog: read all messages available on each loop.

This commit is contained in:
Martin Preuss
2023-07-18 10:51:16 +02:00
parent f30c4895fa
commit 3efb83ecfd

View File

@@ -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);