Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of XBee by
Diff: XBeeWiFi.cpp
- Revision:
- 6:6f84e2840408
- Parent:
- 5:547cfff7adf7
--- a/XBeeWiFi.cpp Tue Mar 13 09:11:35 2012 +0000
+++ b/XBeeWiFi.cpp Wed Dec 18 02:24:33 2013 +0000
@@ -8,6 +8,9 @@
* @brief XBee Wi-Fi library for mbed
*/
+#include "XBee_conf.h"
+#ifdef ENABLE_XBEE_WIFI
+
//#define DEBUG
#include "dbg.h"
@@ -18,7 +21,6 @@
#define REVERSE_ENDIAN(x) (uint16_t)(((uint16_t)x >> 8) | ((uint16_t)x << 8))
-#ifdef USE_WIFICLASS
XBeeWiFi::XBeeWiFi (PinName p_tx, PinName p_rx, PinName p_cts, PinName p_rts) : XBee(p_tx, p_rx, p_cts, p_rts) {
}
@@ -455,8 +457,6 @@
}
#endif
-#endif
-
IPv4TransmitRequest::IPv4TransmitRequest() : PayloadRequest(IPv4_TRANSMIT_REQUEST, DEFAULT_FRAME_ID, NULL, 0) {
}
@@ -593,3 +593,6 @@
uint16_t IPV4RxFrame::getDataLength() {
return getPacketLength() - getDataOffset() - 1;
}
+
+#endif
+
