Liblightmodbus is a very lightweight, highly configurable, platform-independent Modbus RTU library.
Currently supported functions include: 01, 02, 03, 04, 05, 06, 15, 16 and 22. Check the online documentation for more technical information and user guide.
If you face any problems, please refer to the docs first. If you can't find answer to your question there, please open an issue. Hopefully this will help to form some kind of FAQ list. If you want to help - please contribute here, on Github. All contributions are welcome!
I'm making plans for v3.0 release. Many things will be simplified and cleaned up in hope of making liblightmodbus lighter, more flexible and possibly easier to use. If you would like to suggest something, please let me know here.
liblightmodbus can be obtained from PPA (Personal Package Archive).
This is how to install it:
sudo add-apt-repository ppa:mrjjot/liblightmodbus
sudo apt-get update
sudo apt-get install liblightmodbus-dev