Fork with SeeedStudio Xadow GPS v2 enabled
Dependencies: FXOS8700CQ MODSERIAL XadowGPS mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: cell_modem.cpp
- Revision:
- 78:00cca62e5d9f
- Parent:
- 77:c65eae5b9958
diff -r c65eae5b9958 -r 00cca62e5d9f cell_modem.cpp --- a/cell_modem.cpp Mon Aug 15 19:31:14 2016 +0000 +++ b/cell_modem.cpp Mon Aug 15 21:46:21 2016 +0000 @@ -321,7 +321,7 @@ if (sockread_mdm(&MySocketData, 1024, 20)) { PRINTF(DEF "\r\n"); - PRINTF(YEL "Read back : %s" DEF "\r\n", &MySocketData[0]); + PRINTF(YEL "Read back : %s" DEF "\r\n", MySocketData.c_str()); char stringToCharBuf[BUF_SIZE_FOR_N_MAX_SOCKREAD*MAX_WNC_SOCKREAD_PAYLOAD+1]; // WNC can return max of 1500 (per sockread) if ((MySocketData.length() + 1) < sizeof(stringToCharBuf)) {