38 #include <boost/shared_ptr.hpp>
39 #include <boost/asio/serial_port.hpp>
40 #include <boost/asio.hpp>
41 #include <boost/thread.hpp>
46 boost::asio::io_service
io;
58 serial.set_option(boost::asio::serial_port_base::baud_rate(baud_rate));
68 boost::asio::write(
serial,boost::asio::buffer(s.c_str(),s.size()));
80 using namespace boost;
85 asio::read(
serial,asio::buffer(&c,1));
boost::asio::io_service io
SimpleSerial(std::string port, unsigned int baud_rate)
void writeString(std::string s)
boost::asio::serial_port serial