liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
Loading...
Searching...
No Matches
ModbusErrorInfo Struct Reference

Richer error represenation - source and type of error. More...

#include <base.h>

Data Fields

unsigned int source: 2
 Source of the error (e.g. MODBUS_ERROR_SOURCE_REQUEST)
 
unsigned int error: 6
 Contains ModbusError.
 

Detailed Description

Richer error represenation - source and type of error.

See also
ModbusError
modbusIsOk()
modbusGetGeneralError()
modbusGetRequestError()
modbusGetResponseError()
modbusGetErrorSource()
modbusGetErrorCode()
Warning
You should not be accessing source and error directly. The internal implementation of this struct may change in future releases. For this reason, please use modbusGetGeneralError(), modbusGetRequestError(), modbusGetResponseError(), modbusGetErrorSource() and modbusIsOk() instead.

Field Documentation

◆ error

unsigned int ModbusErrorInfo::error

Contains ModbusError.

◆ source

unsigned int ModbusErrorInfo::source

Source of the error (e.g. MODBUS_ERROR_SOURCE_REQUEST)


The documentation for this struct was generated from the following file: