Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXOS8700CQ MODSERIAL mbed
Fork of Avnet_ATT_Cellular_IOT by
Diff: wnc_control.cpp
- Revision:
- 66:b2425419b0cc
- Parent:
- 64:09004cd610df
- Child:
- 67:11db02bb93e1
--- 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
{
