A comprehensive C++ implementation of the Modbus protocol supporting RTU, ASCII, and TCP variants. The library provides a clean, modern C++ interface for building Modbus servers and clients with full compliance to Modbus specifications.
- Complete Function Code Support: All standard Modbus function codes (FC 01-08, 15-16)
- Multiple Transport Protocols: RTU (complete), ASCII and TCP (planned)
- Standards Compliance: Full compliance with Modbus Application Protocol V1.1b3
- Modern C++ Design: C++17 compatible with RAII principles and type safety
- Configurable Data Model: Supports standard and custom Modbus limits
- Comprehensive Testing: Full unit test coverage with Google Test
git clone --recursive https://github.com/shishir-dey/libmodbus.git
cd libmodbus
mkdir build && cd build
cmake ..
make
cd build
make test
- Complete Documentation - Full API reference and guides
- API Reference - Detailed class and function documentation
- Examples - Practical usage examples
- Testing Guide - Testing framework and guidelines
cd docs
pip install -r requirements.txt
make html