Reads/Writes strings from/to serial port using a line-based (typically ASCII) protocol with a defined end-of-line regex.
More...
#include <goby/middleware/io/line_based/serial.h>
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
class goby::middleware::io::SerialThreadLineBased< line_in_group, line_out_group, publish_layer, subscribe_layer, ThreadType, use_indexed_groups >
Reads/Writes strings from/to serial port using a line-based (typically ASCII) protocol with a defined end-of-line regex.
- Template Parameters
-
Definition at line 71 of file serial.h.
◆ SerialThreadLineBased()
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
Constructs the thread.
- Parameters
-
config | A reference to the Protocol Buffers config read by the main application at launch |
index | Thread index for multiple instances in a given application (-1 indicates a single instance) |
Definition at line 82 of file serial.h.
◆ ~SerialThreadLineBased()
template<const goby::middleware::Group & line_in_group, const goby::middleware::Group & line_out_group, PubSubLayer publish_layer = PubSubLayer::INTERPROCESS, PubSubLayer subscribe_layer = PubSubLayer::INTERTHREAD, template< class > class ThreadType = goby::middleware::SimpleThread, bool use_indexed_groups = false>
The documentation for this class was generated from the following file: