25 RMP_THROW_MSG(ConnectionFailedException,
"The serial port must be " 26 "configured before connecting.");
35 }
catch(std::exception &e) {
void configure(std::string port, int baudrate)
serial::Serial serial_port
void setTimeout(Timeout &timeout)
void setBaudrate(uint32_t baudrate)
int read(unsigned char *buffer, int size)
int write(unsigned char *buffer, int size)
static Timeout simpleTimeout(uint32_t timeout)
void setPort(const std::string &port)
size_t read(uint8_t *buffer, size_t size)
size_t write(const uint8_t *data, size_t size)
#define RMP_THROW_MSG(ExceptionClass, Message)