From 5f6581d12654b8048bed72b30b554e63e6f4528c Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 16 Sep 2023 15:48:03 +0200 Subject: [PATCH] Fixed default message size. --- apps/aqhome-tool/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/aqhome-tool/utils.c b/apps/aqhome-tool/utils.c index 2d230a0..b15cbc8 100644 --- a/apps/aqhome-tool/utils.c +++ b/apps/aqhome-tool/utils.c @@ -27,6 +27,8 @@ #include +#define UTILS_IPC_ENDPOINT_DEFAULT_MSGSIZE 4096 + GWEN_MSG_ENDPOINT *Utils_SetupIpcEndpoint(GWEN_DB_NODE *dbArgs) @@ -45,6 +47,7 @@ GWEN_MSG_ENDPOINT *Utils_SetupIpcEndpoint(GWEN_DB_NODE *dbArgs) DBG_ERROR(NULL, "Error creating endpoint TCPc"); return NULL; } + GWEN_MsgEndpoint_SetDefaultMessageSize(epTcp, UTILS_IPC_ENDPOINT_DEFAULT_MSGSIZE); rv=GWEN_TcpcEndpoint_StartConnect(epTcp); if (rv<0 && rv!=GWEN_ERROR_IN_PROGRESS) { DBG_ERROR(NULL, "Error connecting (%d)", rv); @@ -132,6 +135,9 @@ GWEN_MSG *Utils_WaitForSpecificIpcMessage(GWEN_MSG_ENDPOINT *epTcp, DBG_INFO(NULL, "Received IPC result message"); return msg; } + else { + DBG_INFO(NULL, "Received unexpected message %d (%x)", code, code); + } GWEN_Msg_free(msg); } now=time(NULL);