WIZwikiREST-io Reference code for WIZnet Academy
Dependencies: DHT MbedJSONValue_v102 WIZnetInterface mbed-src
Fork of WIZwiki-REST-io_v103 by
Diff: RequestHandler.cpp
- Revision:
- 6:2974bbc94e7a
- Parent:
- 5:473a66ae9596
- Child:
- 8:60d99da6eeb2
diff -r 473a66ae9596 -r 2974bbc94e7a RequestHandler.cpp --- a/RequestHandler.cpp Mon Jul 04 00:14:31 2016 +0000 +++ b/RequestHandler.cpp Fri Jul 29 08:14:28 2016 +0000 @@ -33,18 +33,20 @@ #endif if(tmpJson->hasMember(tok)){ tmpJson = &((*tmpJson)[tok]); + //if(!tmpJson->accessible) tmpJson->cb_action(tmpJson); name = tok; tok = strtok_r(0, "/", &last); } else{ -#ifdef DEBUG_HTTPREQ +#ifndef DEBUG_HTTPREQ printf("No Member\r\n"); #endif break; } } if(name){ - if(tok){ + if(tok) + { if(tmpJson->accessible){ #ifdef DEBUG_HTTPREQ printf("accessible : tmpJson->size()=%d\r\n",tmpJson->size());