10 namespace modbus_controller {
41 void control(
float value)
override;
SensorValueType sensor_value_type
void set_parent(ModbusController *parent)
void set_write_multiply(float factor)
void set_write_template(write_transform_func_t &&f)
optional< write_transform_func_t > write_transform_func_
void set_template(transform_func_t &&f)
std::function< float >(float) value_to_data_t
ModbusController * parent_
ModbusRegisterType register_type
std::function< optional< float >(ModbusNumber *, float, const std::vector< uint8_t > &)> transform_func_t
void parse_and_publish(const std::vector< uint8_t > &data) override
Base-class for all numbers.
ModbusNumber(ModbusRegisterType register_type, uint16_t start_address, uint8_t offset, uint32_t bitmask, SensorValueType value_type, int register_count, uint16_t skip_updates, bool force_new_range)
void set_use_write_mutiple(bool use_write_multiple)
void dump_config() override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
float get_setup_priority() const override
optional< transform_func_t > transform_func_
Implementation of SPI Controller mode.
std::function< optional< float >(ModbusNumber *, float, std::vector< uint16_t > &)> write_transform_func_t
void control(float value) override