wifly/socket interface for wifly modules

Dependents:   WiFi neurGAI_WIFI thingspeak thingspeak2

Revision:
4:74bfdd00362a
Parent:
0:6ffb0aeb3972
Child:
7:a92dbed32890
--- a/WiflyInterface.cpp	Wed Aug 22 16:22:32 2012 +0000
+++ b/WiflyInterface.cpp	Thu Aug 23 10:32:45 2012 +0000
@@ -32,7 +32,8 @@
 char * WiflyInterface::getIPAddress() {
     char * match = 0;
     if (!ip_set) {
-        sendCommand("get ip a\r", NULL, ip_string);
+        if (!sendCommand("get ip a\r", NULL, ip_string))
+            return NULL;
         exit();
         match = strstr(ip_string, "<");
         if (match != NULL) {