Example:
std.bit(4) for 16 bit register should use data from last poll, set 4 bit and write register data.
TODO:
add need_state_data to converter interface
check config and make sure that register from command section is defined in state section
optimally add poll specification for needed register or throw ConfigurationError
implement conversion by passing last read values from state to DataConverter::toModbus or add separate method updateModbus(const &pMqttValue, const ModbusRegisters& data)
Example: std.bit(4) for 16 bit register should use data from last poll, set 4 bit and write register data.
TODO:
ConfigurationError
DataConverter::toModbus
or add separate methodupdateModbus(const &pMqttValue, const ModbusRegisters& data)