aqhome-mqttlog: read all messages available on each loop.
This commit is contained in:
@@ -210,8 +210,7 @@ int _serve(GWEN_DB_NODE *dbArgs)
|
|||||||
else {
|
else {
|
||||||
GWEN_MSG *msg;
|
GWEN_MSG *msg;
|
||||||
|
|
||||||
msg=GWEN_MsgEndpoint_TakeFirstReceivedMessage(epTcp);
|
while( (msg=GWEN_MsgEndpoint_TakeFirstReceivedMessage(epTcp)) ) {
|
||||||
if (msg) {
|
|
||||||
#ifdef FULL_DEBUG
|
#ifdef FULL_DEBUG
|
||||||
DBG_ERROR(NULL, "Received this message:");
|
DBG_ERROR(NULL, "Received this message:");
|
||||||
GWEN_Text_DumpString((const char*) GWEN_Msg_GetConstBuffer(msg), GWEN_Msg_GetBytesInBuffer(msg), 2);
|
GWEN_Text_DumpString((const char*) GWEN_Msg_GetConstBuffer(msg), GWEN_Msg_GetBytesInBuffer(msg), 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user