Dynamic Modbus Master
A dynamic wrapper for the modbus master part of esp-modbus written in C++.
 
Loading...
Searching...
No Matches
dynamic_modbus_master::ModbusErrorHelper Class Reference

#include <ModbusErrorHelper.h>

+ Collaboration diagram for dynamic_modbus_master::ModbusErrorHelper:

Static Public Member Functions

static constexpr std::string modbusErrorToName (const ModbusError error)
 Converts a ModbusError enum value to its corresponding name.
 

Member Function Documentation

◆ modbusErrorToName()

static constexpr std::string dynamic_modbus_master::ModbusErrorHelper::modbusErrorToName ( const ModbusError  error)
inlinestaticconstexpr

Converts a ModbusError enum value to its corresponding name.

Parameters
errorThe ModbusError enum value.
Returns
The name of the ModbusError.

This function takes a ModbusError enum value and returns its corresponding name as a string. The ModbusError enum represents different error types that can occur in Modbus communication.


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