|
| Connection (const std::string &path) |
|
| Connection (const Connection &)=delete |
|
| Connection (Connection &&) noexcept |
|
Connection & | operator= (Connection &&) |
|
void | connect () |
|
std::vector< uint8_t > | sendRequest (const MB::ModbusRequest &request) |
|
std::vector< uint8_t > | sendResponse (const MB::ModbusResponse &response) |
|
std::vector< uint8_t > | sendException (const MB::ModbusException &exception) |
|
std::vector< uint8_t > | send (std::vector< uint8_t > data) |
| Sends data through the serial.
|
|
void | clearInput () |
|
std::tuple< MB::ModbusResponse, std::vector< uint8_t > > | awaitResponse () |
|
std::tuple< MB::ModbusRequest, std::vector< uint8_t > > | awaitRequest () |
|
std::vector< uint8_t > | awaitRawMessage () |
|
void | enableParity (const bool parity) |
|
void | setEvenParity () |
|
void | setOddParity () |
|
void | setTwoStopBits (const bool two) |
|
void | setBaudRate (speed_t speed) |
|
termios & | getTTY () |
|
int | getTimeout () const |
|
void | setTimeout (int timeout) |
|
|
static const unsigned int | DefaultSerialTimeout = 100 |
|
◆ send()
std::vector< uint8_t > Connection::send |
( |
std::vector< uint8_t > | data | ) |
|
Sends data through the serial.
- Parameters
-
The documentation for this class was generated from the following files: