ESPHome  2024.10.2
Public Member Functions | Data Fields
esphome::modbus_controller::ServerRegister Class Reference

#include <modbus_controller.h>

Public Member Functions

 ServerRegister (uint16_t address, SensorValueType value_type, uint8_t register_count, std::function< float()> read_lambda)
 

Data Fields

uint16_t address
 
SensorValueType value_type
 
uint8_t register_count
 
std::function< float()> read_lambda
 

Detailed Description

Definition at line 255 of file modbus_controller.h.

Constructor & Destructor Documentation

◆ ServerRegister()

esphome::modbus_controller::ServerRegister::ServerRegister ( uint16_t  address,
SensorValueType  value_type,
uint8_t  register_count,
std::function< float()>  read_lambda 
)
inline

Definition at line 257 of file modbus_controller.h.

Field Documentation

◆ address

uint16_t esphome::modbus_controller::ServerRegister::address

Definition at line 264 of file modbus_controller.h.

◆ read_lambda

std::function<float()> esphome::modbus_controller::ServerRegister::read_lambda

Definition at line 267 of file modbus_controller.h.

◆ register_count

uint8_t esphome::modbus_controller::ServerRegister::register_count

Definition at line 266 of file modbus_controller.h.

◆ value_type

SensorValueType esphome::modbus_controller::ServerRegister::value_type

Definition at line 265 of file modbus_controller.h.


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