![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Upper Version Add PUT method Delete POST method
Dependencies: Adafruit_GFX MbedJSONValue_v102 WIZnetInterface mbed
Fork of WIZwiki-REST-io_v102 by
Diff: RequestHandler.cpp
- Revision:
- 5:473a66ae9596
- Parent:
- 4:0b5a199e91f3
- Child:
- 6:2974bbc94e7a
diff -r 0b5a199e91f3 -r 473a66ae9596 RequestHandler.cpp --- a/RequestHandler.cpp Tue May 31 10:31:30 2016 +0000 +++ b/RequestHandler.cpp Mon Jul 04 00:14:31 2016 +0000 @@ -183,6 +183,7 @@ case MbedJSONValue::TypeString: if(tmpJson->accessible){ *tmpJson = pDataJson->_value.asString; + tmpJson->cb_action((void*)tmpJson->_value.asString->c_str()); } else{ errnum = 403; @@ -200,7 +201,11 @@ if((*tmpJson)[tok].accessible){ errnum = 200; if((*pDataJson)[i].size() > 0){ - (*tmpJson)[tok] = (*pDataJson)[i]._value.asString; + //(*tmpJson)[tok] = (*pDataJson)[i]._value.asString; + (*tmpJson)[tok] = (*pDataJson)[i]._value.asString->c_str(); + + //(*tmpJson)[tok].cb_action((void*)&((*pDataJson)[i]._value.asInt)); + (*tmpJson)[tok].cb_action((void*)((*pDataJson)[i]._value.asString->c_str())); #ifdef DEBUG_HTTPREQ printf("String Updated: %s : %s\r\n", tok,(*tmpJson)[tok].get<std::string>().c_str()); #endif