40 #include <sys/select.h>
41 #include <sys/types.h>
44 #include <mraa/uart.h>
46 #define HM11_DEFAULT_UART 0
114 int readData(
char *buffer,
int len);
136 int ttyFd() {
return m_ttyFd; };
139 mraa_uart_context m_uart;
int writeData(char *buffer, int len)
Definition: hm11.cxx:116
bool dataAvailable(unsigned int millis)
Definition: hm11.cxx:74
bool setupTty(speed_t baud=B9600)
Definition: hm11.cxx:140
int readData(char *buffer, int len)
Definition: hm11.cxx:98
HM11(int uart)
Definition: hm11.cxx:36
~HM11()
Definition: hm11.cxx:68
API for the HM-11 4.0 Bluetooth Low Energy Module.
Definition: hm11.h:81