3#include <boost/asio.hpp>
26 serial.set_option(boost::asio::serial_port_base::baud_rate(baud_rate));
40 boost::asio::io_service
io;
void writeString(std::string s)
Write a string to the serial device.
boost::asio::io_service io
Boost io service.
void initialize_stream(int iter=3)
Setup up stream by reading the values a couple times first.
std::string readLine(void)
Blocks until a line is received from the serial device.
SerialCOM(std::string port, unsigned int baud_rate)
Constructor.
boost::asio::serial_port serial
Boost serial port handle.