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, 
size_t len);
 
  136     int ttyFd() { 
return m_ttyFd; };
 
  137     int setTtyFd(
int fd) { m_ttyFd = fd; };
 
  140     mraa_uart_context m_uart;
 
int writeData(char *buffer, size_t len)
Definition: hm11.cxx:105
 
bool dataAvailable(unsigned int millis)
Definition: hm11.cxx:68
 
int readData(char *buffer, size_t len)
Definition: hm11.cxx:92
 
bool setupTty(speed_t baud=B9600)
Definition: hm11.cxx:127
 
HM11(int uart)
Definition: hm11.cxx:34
 
~HM11()
Definition: hm11.cxx:62
 
API for the HM-11 4.0 Bluetooth Low Energy Module. 
Definition: hm11.h:81