decreased verbosity, send MQTT ping every 2 minutes to avoid disconnect.
This commit is contained in:
@@ -183,7 +183,7 @@ int _getBytesNeededForMessage(GWEN_UNUSED GWEN_MSG_ENDPOINT2 *ep, GWEN_MSG *msg)
|
||||
|
||||
bytesInMsg=GWEN_Msg_GetBytesInBuffer(msg);
|
||||
if (bytesInMsg<2) {
|
||||
DBG_INFO(AQH_LOGDOMAIN, "Header not yet complete");
|
||||
DBG_DEBUG(AQH_LOGDOMAIN, "Header not yet complete");
|
||||
return (int) (2-bytesInMsg);
|
||||
}
|
||||
if (!(GWEN_Msg_GetFlags(msg) & GWEN_MSG_FLAGS_PAYLOADINFO_SET))
|
||||
@@ -196,7 +196,7 @@ int _getBytesNeededForMessage(GWEN_UNUSED GWEN_MSG_ENDPOINT2 *ep, GWEN_MSG *msg)
|
||||
return (int)(msgLength-bytesInMsg);
|
||||
}
|
||||
else {
|
||||
DBG_INFO(AQH_LOGDOMAIN, "Size field not complete, requesting another byte");
|
||||
DBG_DEBUG(AQH_LOGDOMAIN, "Size field not complete, requesting another byte");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user