64 UARTAT(
unsigned int uart,
unsigned int baudrate);
73 UARTAT(std::string uart_path,
unsigned int baudrate);
86 std::string
readStr(
size_t size);
150 bool commandMode(
const std::string cmd_chars,
unsigned int guard_ms);
204 std::string
commandWaitFor(
const std::string cmd,
size_t resp_len,
205 const std::string waitString,
206 unsigned int millis);
214 void command(
const std::string cmd);
244 bool find(
const std::string buffer,
const std::string str);
void setResponseWaitTime(unsigned int wait_time)
Definition: uartat.cxx:87
void drain()
Definition: uartat.cxx:107
bool commandMode(const std::string cmd_chars, unsigned int guard_ms)
Definition: uartat.cxx:97
std::string commandWithResponse(const std::string cmd, size_t resp_len)
Definition: uartat.cxx:113
bool inCommandMode()
Definition: uartat.cxx:102
bool dataAvailable(unsigned int millis)
Definition: uartat.cxx:92
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
Generic API for AT command based UART devices.
UARTAT(unsigned int uart, unsigned int baudrate)
Definition: uartat.cxx:34
void filterCR(bool enable)
Definition: uartat.cxx:170
bool find(const std::string buffer, const std::string str)
Definition: uartat.cxx:165
std::string stringCR2LF(std::string str)
Definition: uartat.cxx:147
std::string commandWaitFor(const std::string cmd, size_t resp_len, const std::string waitString, unsigned int millis)
Definition: uartat.cxx:127
void setFlowControl(UARTAT_FLOW_CONTROL_T fc)
Definition: uartat.cxx:156
std::string readStr(size_t size)
Definition: uartat.cxx:55
API for a Generic AT command based UART device.
Definition: uartat.hpp:55
void setBaudrate(unsigned int baudrate)
Definition: uartat.cxx:80
void command(const std::string cmd)
Definition: uartat.cxx:140
~UARTAT()
Definition: uartat.cxx:50
int writeStr(std::string buffer)
Definition: uartat.cxx:68