![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.
Dependencies: mbed FXOS8700CQ MODSERIAL
Diff: cell_modem.cpp
- Revision:
- 78:00cca62e5d9f
- Parent:
- 77:c65eae5b9958
- Child:
- 84:fc8c9b39723a
--- 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)) {