Remote I/O Sensor bus with AT&T flow and M2X cloud

Dependencies:   DHT11 FXOS8700CQ MODSERIAL mbed

Fork of Avnet_ATT_Cellular_IOT by Avnet

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
   {