debevv / nanoMODBUS

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

Using NMBS_SERVER_DISABLED #23

Closed rik702 closed 1 year ago

rik702 commented 1 year ago

I’ve written a Modbus RTU client in MacOS that works well. As a Modbus newbie I started experimenting with the compiler flags and found if I set NMBS_SERVER_DISABLED, this stopped nmbs_read_holding_registers being available. That confused me as I thought that would be a client function?

debevv commented 1 year ago

Yup, I noticed this too just yesterday, it doesn't make much sense. I'm going to fix this asap

debevv commented 1 year ago

Fixed in 8493fc52671bd8c8b0c69e82b2527fc07ab683f1

rik702 commented 1 year ago

Great, thanks