FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.

Dependencies:   mbed FXOS8700CQ MODSERIAL

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;