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
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
mraa::Result setBaudRate(int baud=9600)
Definition: xbee.cxx:71
API for the XBee modules.
Definition: xbee.hpp: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