36 #include <mraa/common.hpp>
37 #include <mraa/uart.hpp>
39 #define XBEE_DEFAULT_UART 0
89 XBee(
int uart=XBEE_DEFAULT_UART);
114 int readData(
char *buffer,
unsigned int len);
136 int writeData(
char *buffer,
unsigned len);
173 bool commandMode(std::string cmdChars=
"+++",
int guardTimeMS=1000);
std::string stringCR2LF(std::string str)
Definition: xbee.cxx:95
~XBee()
Definition: xbee.cxx:40
bool dataAvailable(unsigned int millis)
Definition: xbee.cxx:44
bool commandMode(std::string cmdChars="+++", int guardTimeMS=1000)
Definition: xbee.cxx:76
mraa::Result setBaudRate(int baud=9600)
Definition: xbee.cxx:71
API for the XBee modules.
Definition: xbee.h:81
int writeData(char *buffer, unsigned len)
Definition: xbee.cxx:59
std::string readDataStr(int len)
Definition: xbee.cxx:54
int writeDataStr(std::string data)
Definition: xbee.cxx:65
XBee(int uart=XBEE_DEFAULT_UART)
Definition: xbee.cxx:35
int readData(char *buffer, unsigned int len)
Definition: xbee.cxx:49