XBee-mbed library Forked from http://mbed.org/users/okini3939/notebook/xbee-mbed/
Fork of XBee by
Diff: XBeeWiFi.h
- Revision:
- 6:6f84e2840408
- Parent:
- 5:547cfff7adf7
- Child:
- 7:b36422ef864f
--- a/XBeeWiFi.h Tue Mar 13 09:11:35 2012 +0000 +++ b/XBeeWiFi.h 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 + #ifndef XBeeWiFi_h #define XBeeWiFi_h @@ -16,9 +19,6 @@ #include "XBee.h" #include <inttypes.h> -#define USE_WIFICLASS -#define USE_WIFIDNS - // the non-variable length of the frame data (not including frame id or api id or variable data size (e.g. payload, at command set value) #define IPv4_TRANSMIT_REQUEST_API_LENGTH 10 @@ -98,7 +98,6 @@ } __attribute__((packed)); -#ifdef USE_WIFICLASS /** * Primary interface for communicating with an XBee Wi-Fi. */ @@ -136,7 +135,6 @@ IpAddr _nameserver; int _nameport; }; -#endif /** * Represents a Wi-Fi TX packet that corresponds to Api Id: IPv4_TRANSMIT_REQUEST @@ -204,3 +202,4 @@ }; #endif //XBeeWiFi_h +#endif