![]() |
rodbus (C++ API) 1.3.1
|
Describes to the server if a write operation was successful or not. More...
#include <rodbus.hpp>
Static Public Member Functions | |
| static WriteResult | success_init () |
| Initialize a WriteResult to indicate a successful write operation. More... | |
| static WriteResult | exception_init (ModbusException exception) |
| Initialize a WriteResult to indicate a standard Modbus exception. More... | |
| static WriteResult | raw_exception_init (uint8_t raw_exception) |
| Initialize a WriteResult to indicate a non-standard Modbus exception. More... | |
Public Attributes | |
| bool | success |
| true if the operation was successful, false otherwise. Error details found in the exception field. More... | |
| ModbusException | exception |
| Exception enumeration. If ModbusException::unknown, look at the raw value. More... | |
| uint8_t | raw_exception |
| Raw exception value when WriteResult::exception field is ModbusException::unknown More... | |
Friends | |
| class | CppWriteResultFriend |
Describes to the server if a write operation was successful or not.
May either be 'success' or an exception code returned to the client.
Used in implementations of the WriteHandler.
|
static |
Initialize a WriteResult to indicate a standard Modbus exception.
false | exception | Exception enumeration. If ModbusException::unknown, look at the raw value |
|
static |
Initialize a WriteResult to indicate a non-standard Modbus exception.
| raw_exception | Raw exception value when WriteResult::exception field is ModbusException::unknown |
|
static |
Initialize a WriteResult to indicate a successful write operation.
| ModbusException rodbus::WriteResult::exception |
Exception enumeration. If ModbusException::unknown, look at the raw value.
| uint8_t rodbus::WriteResult::raw_exception |
Raw exception value when WriteResult::exception field is ModbusException::unknown
| bool rodbus::WriteResult::success |
true if the operation was successful, false otherwise. Error details found in the exception field.