46 #ifndef BUFFEREDASYNCSERIAL_H
47 #define BUFFEREDASYNCSERIAL_H
69 boost::asio::serial_port_base::parity opt_parity =
70 boost::asio::serial_port_base::parity ( boost::
71 asio::serial_port_base::parity::
73 boost::asio::serial_port_base::character_size opt_csize =
74 boost::asio::serial_port_base::character_size ( 8 ),
75 boost::asio::serial_port_base::flow_control opt_flow =
76 boost::asio::serial_port_base::flow_control ( boost::
77 asio::serial_port_base::flow_control::
79 boost::asio::serial_port_base::stop_bits opt_stop =
80 boost::asio::serial_port_base::stop_bits ( boost::
81 asio::serial_port_base::stop_bits::
90 size_t read (
char *data,
size_t size );
96 std::vector < char >
read ( );
135 const std::string & s );
141 #endif //BUFFEREDASYNCSERIAL_H
void readCallback(const char *data, size_t len)
Asyncronous serial class Asyncronous serial class. Intended to be a base class.
Asynchronous serial class w/ buffer Asynchronous serial class that sends data to buffer after reading...
std::string readStringUntil(const std::string delim="\n")
Class found to work with asyncronous Serial communications ()
std::vector< char > read()
std::vector< char > readQueue
virtual ~BufferedAsyncSerial()
static std::vector< char >::iterator findStringInVector(std::vector< char > &v, const std::string &s)
boost::mutex readQueueMutex