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:
19:f89baed3bd6f
Parent:
10:df54436ecd38
Child:
22:41e6c417ace1
--- a/wnc_control.cpp	Wed Jul 13 15:57:38 2016 +0000
+++ b/wnc_control.cpp	Wed Jul 13 17:35:14 2016 +0000
@@ -62,6 +62,8 @@
 {
     do
     {
+      at_at_wnc();
+      at_at_wnc();
       WNC_MDM_ERR = WNC_OK;
       at_sockopen_wnc(MyServerIpAddress, MY_PORT_STR);
       if (WNC_MDM_ERR == WNC_NO_RESPONSE)
@@ -214,6 +216,12 @@
   }
 }
 
+void at_at_wnc(void)
+{
+    string * pRespStr;
+    send_wnc_cmd("AT", &pRespStr, WNC_TIMEOUT_MS); // Heartbeat?
+}
+
 void at_init_wnc(void)
 {
   string * pRespStr;