debevv / nanoMODBUS

A compact MODBUS RTU/TCP C library for embedded/microcontrollers
MIT License
234 stars 47 forks source link

adds fc23 #37

Closed maxlem closed 10 months ago

maxlem commented 11 months ago

Hi,

this mr adds support for fc23, reusing user's read registers and write registers handlers (you don't need a new callback).

I'm not really allowed to spend more effort to clean it up. the code was tested with c++ code in my client project, an incomplete c test is included.

It also introduce significant code duplication but I think the refactor should be done in a second pass (once fc23 test has been added)

Sorry for the half-effort and thank you

debevv commented 11 months ago

Thank you! I'll take a look at as soon as possible