liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
The liblightmodbus C++ namepsace. More...
Data Structures | |
class | GeneralError |
General error exception class. More... | |
class | Master |
Represents a Modbus master device. More... | |
class | RequestError |
Request error exception class. More... | |
class | ResponseError |
Response error exception class. More... | |
class | Slave |
Represents a Modbus slave device. More... | |
Functions | |
static void | throwErrorInfo (ModbusErrorInfo err) |
Throws an exception based on ModbusErrorInfo. | |
The liblightmodbus C++ namepsace.
|
inlinestatic |
Throws an exception based on ModbusErrorInfo.
err | The ModbusErrorInfo to convert to an exception |
GeneralError | if modbusGetGeneralError(err) is not MODBUS_OK |
RequestError | if modbusGetRequestError(err) is not MODBUS_OK |
ResponseError | if modbusGetResponseError(err) is not MODBUS_OK |