Fork with SeeedStudio Xadow GPS v2 enabled
Dependencies: FXOS8700CQ MODSERIAL XadowGPS mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: wnc_control.cpp
- Revision:
- 66:b2425419b0cc
- Parent:
- 64:09004cd610df
- Child:
- 67:11db02bb93e1
diff -r 0d99b8c635c1 -r b2425419b0cc wnc_control.cpp --- a/wnc_control.cpp Mon Aug 01 23:35:19 2016 +0000 +++ b/wnc_control.cpp Thu Aug 04 05:48:20 2016 +0000 @@ -32,6 +32,18 @@ void software_init_mdm(void) { + // Temp put here to fix new boards needing init, + // the check for on the cellular network was preventing the PDNSET from happening!!!! + { + pc.puts("SET APN STRING!\r\n"); + string * pRespStr; + string cmd_str("AT%PDNSET=1,"); + cmd_str += MY_APN_STR; + cmd_str += ",IP"; + at_send_wnc_cmd(cmd_str.c_str(), &pRespStr, 4*WNC_TIMEOUT_MS); // Set APN, cmd seems to take a little longer sometimes + pc.puts(cmd_str.c_str()); + } + static bool reportStatus = true; do {