bertmelis / esp32ModbusRTU

modbus RTU client for ESP32
MIT License
70 stars 44 forks source link

Remove address parameter #42

Open Miq1 opened 4 years ago

Miq1 commented 4 years ago

Removed the address parameter in onData and onDataToken handler calls, plus the preparational statements to provide them.

The address is a partly valid reference only with function codes using it, those just executing commands without dedicated address would not benefit. The universal token parameter serves the same purpose, but regardless of function code. As it is a user-defined uint32_t value, uniqueness can be maintained by the application.

Miq1 commented 4 years ago

Please note that this PR is to be applied on top of the previous two #39 "Token implementation" and #41 "New Receive".