The Hiking Pal tracking device firmware. See full description on the detail page: https://www.hackster.io/bowenfeng/hiking-pal-v1-07c02d
Dependencies: FXOS8700CQ MODSERIAL mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: cell_modem.cpp
- Revision:
- 87:ca75c5e785a7
- Parent:
- 78:00cca62e5d9f
--- a/cell_modem.cpp Thu Dec 22 06:59:20 2016 +0000 +++ b/cell_modem.cpp Thu Dec 22 09:32:33 2016 +0000 @@ -326,11 +326,9 @@ if ((MySocketData.length() + 1) < sizeof(stringToCharBuf)) { strcpy(stringToCharBuf, MySocketData.c_str()); - if (extract_JSON(stringToCharBuf, &rx_string[0])) - { - PRINTF(GRN "JSON : %s" DEF "\n", &rx_string[0]); - iStatus = 1; //all good - } + char* body = strstr(stringToCharBuf, "\r\n\r\n"); + sprintf(rx_string, body + 4); + iStatus = 1; //all good } else {