aqhome-storage now checks and parses mqtt messages and stores values in datafiles.
This commit is contained in:
@@ -522,7 +522,8 @@ void _abortMessage(GWEN_MSG_ENDPOINT *ep)
|
||||
DBG_DEBUG(AQH_LOGDOMAIN, "Aborting message (if any).");
|
||||
xep=GWEN_INHERIT_GETDATA(GWEN_MSG_ENDPOINT, AQH_ENDPOINT_HTTP, ep);
|
||||
|
||||
GWEN_Buffer_Reset(xep->currentReadBuffer);
|
||||
if (xep->currentReadBuffer)
|
||||
GWEN_Buffer_Reset(xep->currentReadBuffer);
|
||||
xep->currentHeaderPos=0;
|
||||
xep->currentBodyPos=0;
|
||||
xep->currentBodySize=0;
|
||||
|
||||
@@ -657,7 +657,9 @@ int _unescapeUrlEncoded(const char *src, unsigned int srclen, char *buffer, unsi
|
||||
x=='.' ||
|
||||
x=='*' ||
|
||||
x=='?' ||
|
||||
x=='+'
|
||||
x=='+' ||
|
||||
x=='-' ||
|
||||
x=='_'
|
||||
) {
|
||||
if (size<(maxsize-1)) {
|
||||
buffer[size++]=(x=='+')?' ':x;
|
||||
|
||||
Reference in New Issue
Block a user