Poerting the Xbee library to use teh wifi functionality of the LPC4088.

Dependents:   XBee_WiFi_EA_LPC4088

Fork of XBee by Suga koubou

Revision:
8:042c457e3282
Parent:
6:6f84e2840408
--- a/XBeeWiFi.cpp	Wed Dec 18 02:32:33 2013 +0000
+++ b/XBeeWiFi.cpp	Tue Feb 10 21:16:07 2015 +0000
@@ -11,7 +11,7 @@
 #include "XBee_conf.h"
 #ifdef ENABLE_XBEE_WIFI
 
-//#define DEBUG
+#define DEBUG
 #include "dbg.h"
 
 #include "mbed.h"
@@ -237,8 +237,16 @@
     AtCommandResponse atResponse;
 
     getResponse().getAtCommandResponse(atResponse);
+    DBG("**in getWiAddr after getResponse()**\r\n");
+    
+    DBG("**isOK: %d **\r\n", atResponse.isOk() );
+    DBG("**Response length: %d **\r\n", atResponse.getValueLength() );
+    DBG("**Response: %s **\r\n", atResponse.getValue() );
+    
     if (atResponse.isOk() && atResponse.getValueLength() >= 7) {
+        DBG("**Inside getWiAddr if**\r\n");
         sscanf((char*)atResponse.getValue(), "%d.%d.%d.%d", &ip1, &ip2, &ip3, &ip4);
+        DBG("**ip(getWiAddr): %d.%d.%d.%d **\r\n", ip1,ip2,ip3,ip4);
         ipaddr = IpAddr(ip1, ip2, ip3, ip4);
         return 0;
     }