libmodbus icon indicating copy to clipboard operation
libmodbus copied to clipboard

Callback-API for modbus slaves

Open ranft opened this issue 9 years ago • 3 comments

The modbus_reply-function was changed to support callbacks instead of a memory mapping. The memory mapping is now a specialized case of the callback mechanism, in order to handle both cases the same way (= no copies of existing code).

ranft avatar Apr 27 '16 09:04 ranft

I like the general idea of this (a lot) but haven't tried this out yet.

karlp avatar Apr 28 '16 15:04 karlp

I intend to apply a few changes on libmodbus (DRY in modbus_reply) and to review other work on callback feature before choosing the best way to add this feature. Stay tuned and thank you for your PR!

stephane avatar May 18 '16 12:05 stephane

@ranft I'm sure you'll be interested by the recent changes I applied to libmodbus master few hours ago ;)

https://github.com/stephane/libmodbus/commit/73a88a747c473a7427ef70f0351ff6f5370c3495

stephane avatar May 20 '16 13:05 stephane