FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.
Dependencies: mbed FXOS8700CQ MODSERIAL
Revision 66:b2425419b0cc, committed 2016-08-04
- Comitter:
- fkellermavnet
- Date:
- Thu Aug 04 05:48:20 2016 +0000
- Parent:
- 65:0d99b8c635c1
- Child:
- 67:11db02bb93e1
- Commit message:
- Need to unconditionally set the APN string for new boards!
Changed in this revision
wnc_control.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 {