BlackZork / mqmgateway

MQTT gateway for modbus networks
GNU Affero General Public License v3.0
42 stars 18 forks source link

Feature request: converter support for commands #15

Closed molnarg closed 1 year ago

molnarg commented 1 year ago

When exposing a register over MQTT, and the reading operation has a conversion, it's natural that the same conversion needs to be made in the reverse direction when writing that register.

In my specific case, the register exposes a temperature in units of 0.1C, but over the MQTT interace, I'd like to expose units of 1C. Currently, I can do it for read operations, but not for write operations.

BlackZork commented 1 year ago

The simplest way to do it is to use similar interface as for state topic value conversions. TODO:

It will take some time.

BlackZork commented 1 year ago

Implemented in 48cb1cb6

molnarg commented 1 year ago

Thx! :)