Xbee API library with support SPI connection. (use only SPI supported model. see also http://www.digi.com/support/kbase/kbaseresultdetl?id=3362 )

Dependents:   XBeeWiFi_SPI_example

Fork of XBee by Suga koubou

Revision:
10:eb70be6ceb6d
Parent:
9:e32c2e5390d3
--- a/XBee.h	Fri Jan 03 03:33:03 2014 +0000
+++ b/XBee.h	Sat Jan 04 15:34:59 2014 +0000
@@ -681,7 +681,7 @@
  */
 class XBee {
 public:
-#ifdef XBEE_USE_UART
+#ifndef USE_XBEE_SPI
     XBee(PinName p_tx, PinName p_rx);
     XBee(PinName p_tx, PinName p_rx, PinName p_cts, PinName p_rts);
 #else
@@ -713,7 +713,7 @@
      * call forever!! often it's better to use a timeout: readPacket(int)
      */
     void readPacketUntilAvailable();
-#ifdef XBEE_USE_UART
+#ifndef USE_XBEE_SPI
     /**
      * Starts the serial connection at the supplied baud rate
      */
@@ -751,7 +751,7 @@
     uint8_t _nextFrameId;
     // buffer for incoming RX packets.  holds only the api specific frame data, starting after the api id byte and prior to checksum
     uint8_t _responseFrameData[MAX_FRAME_DATA_SIZE];
-#ifdef XBEE_USE_UART
+#ifndef USE_XBEE_SPI
     Serial _xbee;
 #else
     SPI _xbee;