emma controller code in production board v1
Dependencies: ADE7758_v1 Crypto DHT11 MQTT MbedJSONValueEmma SDFileSystem TFT_ILI9341 SWSPI SetRTC TFT_fonts Touch W5500Interface mbed-rtos mbed-src SoftSerial
Fork of emma_controller_energy by
Diff: emmaCode.cpp
- Revision:
- 35:b8ba2b73201b
- Parent:
- 34:8555d471b880
- Child:
- 36:ed696fd1b44e
--- a/emmaCode.cpp Fri Aug 14 06:42:31 2015 +0000 +++ b/emmaCode.cpp Fri Aug 14 08:34:15 2015 +0000 @@ -1600,6 +1600,7 @@ trial=0; while(1) { + rxBuf.clear(); //cmdExecuted = false; if(trial>=2) { //two times trial DBG.printf("cmd is not executed\r\n"); @@ -1616,7 +1617,7 @@ } nodes[idx].restConn->get("/",s); wait(2); - if(rxBuf.find("REST: Sent") != std::string::npos) { + if(rxBuf.find("REST: status = 200") != std::string::npos) { DBG.printf("cmd is executed\r\n"); TFT.foreground(Green); TFT.locate(0,180);