10 namespace modbus_controller {
22 this->start_address +=
offset;
54 this->start_address +=
offset;
SensorValueType sensor_value_type
Base class for all output components that can output a variable level, like PWM.
void parse_and_publish(const std::vector< uint8_t > &data) override
void set_write_template(write_transform_func_t &&f)
void set_parent(ModbusController *parent)
ModbusRegisterType register_type
void parse_and_publish(const std::vector< uint8_t > &data) override
const nullopt_t nullopt((nullopt_t::init()))
void set_use_write_mutiple(bool use_write_multiple)
void dump_config() override
void write_state(float value) override
Write a value to the device.
ModbusBinaryOutput(uint16_t start_address, uint8_t offset)
optional< write_transform_func_t > write_transform_func_
ModbusFloatOutput(uint16_t start_address, uint8_t offset, SensorValueType value_type, int register_count)
ModbusController * parent_
Implementation of SPI Controller mode.
void set_write_multiply(float factor)
std::function< optional< float >(ModbusFloatOutput *, float, std::vector< uint16_t > &)> write_transform_func_t
void set_parent(ModbusController *parent)
void set_use_write_mutiple(bool use_write_multiple)
std::function< optional< bool >(ModbusBinaryOutput *, bool, std::vector< uint8_t > &)> write_transform_func_t
void set_write_template(write_transform_func_t &&f)