10 namespace modbus_controller {
SensorValueType sensor_value_type
void dump_config() override
ModbusSensor(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)
ModbusRegisterType register_type
optional< transform_func_t > transform_func_
void set_template(transform_func_t &&f)
const nullopt_t nullopt((nullopt_t::init()))
void parse_and_publish(const std::vector< uint8_t > &data) override
std::function< optional< float >(ModbusSensor *, float, const std::vector< uint8_t > &)> transform_func_t
Implementation of SPI Controller mode.
Base-class for all sensors.