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:
45:a836eecd5d12
Parent:
44:c95a85b5cf92
Child:
46:da9d788f5d5a
--- a/wnc_control.cpp	Sun Jul 24 17:45:30 2016 +0000
+++ b/wnc_control.cpp	Sun Jul 24 17:50:42 2016 +0000
@@ -269,12 +269,13 @@
 {
   if (check_wnc_ready() < 0)
   {
-     static string noRespStr("");
+     static string noRespStr;
      string truncStr(s, 50);
      pc.puts("FAIL send cmd: ");
      pc.puts(truncStr.c_str());
      pc.puts("\r\n");
      WNC_MDM_ERR = WNC_NO_RESPONSE;
+     noRespStr.erase();
      *r = &noRespStr;
      return (-2);
   }