Install libmodbus-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libmodbus-dev
Description:
development files for the Modbus protocol library
A Modbus library written in C, to send/receive data with a device which respects the Modbus protocol. This library can use a serial port or an Ethernet connection. . This package contains the development files.
Homepage: http://libmodbus.org/
Version: 3.0.6-2
Section: universe/libdevel