I'm using libmodbus on an embedded system, and I'd like to be able to get a callback of exactly what registers have been modified on a slave/server node so that I can avoid scanning the whole block for changes.
Is this doable with the current API?
This could be as simple as having a notification callback with start address and length since the Modbus protocol only allows for contiguous writes anyways.
The solution I see would be to add a default parameter(s) to
modbus_mapping_new_start_address, and when a write command is sent, the mapping calls a notification function with the start address and the length of the write.