Poerting the Xbee library to use teh wifi functionality of the LPC4088.
Dependents: XBee_WiFi_EA_LPC4088
Fork of XBee by
Diff: XBee.cpp
- Revision:
- 8:042c457e3282
- Parent:
- 6:6f84e2840408
diff -r b36422ef864f -r 042c457e3282 XBee.cpp --- a/XBee.cpp Wed Dec 18 02:32:33 2013 +0000 +++ b/XBee.cpp Tue Feb 10 21:16:07 2015 +0000 @@ -33,6 +33,8 @@ #include "mbed.h" #include "XBee.h" +extern Serial pc; + XBeeResponse::XBeeResponse() { } @@ -630,6 +632,7 @@ // pass pointer array to subclass at->setFrameData(getFrameData()); +// pc.printf("setFrameData: %X \r\n",getFrameData()); //by marin setCommon(atCommandResponse); } @@ -1447,9 +1450,12 @@ if (escape && (b == START_BYTE || b == ESCAPE || b == XON || b == XOFF)) { // std::cout << "escaping byte [" << toHexString(b) << "] " << std::endl; _xbee.putc(ESCAPE); + //pc.printf("**XBee::sendByte(if): %X **\r\n", ESCAPE); //by marin _xbee.putc(b ^ 0x20); + //pc.printf("**XBee::sendByte(if): %X **\r\n", (b ^ 0x20)); //by marin } else { _xbee.putc(b); + //pc.printf("**XBee::sendByte(else): %X **\r\n", b); //by marin } DBG("%02x ", b); }