1#include "../include/serial_com.h"
10 boost::asio::write(
serial,boost::asio::buffer(s.c_str(),s.size()));
22 using namespace boost;
27 asio::read(
serial,asio::buffer(&c,1));
48 for (
size_t i = 0; i < iter; i++)
50 std::string incoming_str = this->
readLine();
void writeString(std::string s)
Write a string to the serial device.
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.
boost::asio::serial_port serial
Boost serial port handle.