ATT_SMS_System for home security system
Dependencies: FXOS8700CQ MODSERIAL mbed-rtos mbed
Fork of ATT_Cellular_IOT_Button by
Diff: main.cpp
- Revision:
- 50:8ac42961458c
- Parent:
- 49:97f823273dc0
- Child:
- 52:9dafcb7f320f
diff -r 97f823273dc0 -r 8ac42961458c main.cpp --- a/main.cpp Sun Jul 24 21:22:23 2016 +0000 +++ b/main.cpp Sun Jul 24 21:55:29 2016 +0000 @@ -517,7 +517,7 @@ } printf(YEL "Read back : %s" DEF "\r\n", &MySocketData[0]); char myJsonResponse[512]; - char stringToCharBuf[1501]; // WNC can return max of 1500 + char stringToCharBuf[BUF_SIZE_FOR_N_MAX_SOCKREAD*MAX_WNC_SOCKREAD_PAYLOAD+1]; // WNC can return max of 1500 (per sockread) strcpy(stringToCharBuf, MySocketData.c_str()); if (extract_JSON(stringToCharBuf, &myJsonResponse[0])) {