Skip to content

shishir-dey/libmodbus

Repository files navigation

libmodbus logo

libmodbus - C++ Modbus Protocol Implementation

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.

🚀 Features

  • 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

📊 Build Status

CMake on a single platform Generate Sphinx documentation Pages build & deployment

🚀 Quick Start

Building the Library

git clone --recursive https://github.com/shishir-dey/libmodbus.git
cd libmodbus
mkdir build && cd build
cmake ..
make

Running Tests

cd build
make test

📖 Documentation

Generating Documentation Locally

cd docs
pip install -r requirements.txt
make html

About

A lightweight and efficient C++ Modbus library optimized for embedded systems

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •