Installation

We recommend to use the PlatformIO IDE. There, in your project’s platformio.ini file, add the Github URL of this library to your lib_deps = entry in the [env:...] section of that file:

[platformio]

# some settings

[env:your_project_target]

# some settings

lib_deps = 
  ModbusClient=https://github.com/eModbus/eModbus.git

If you are using the Arduino IDE, you will want to copy the library folder into your library directory. In Windows this will be C:\Users\<user_name>\Documents\Arduino\libraries normally. For Arduino IDE you’ll have to install the library dependencies manually. These are:

  • AsyncTCP
  • An Ethernet.h-compatible library (example: https://github.com/maxgerhardt/Ethernet). Note that the standard Ethernet.h in the arduino-esp32 core will NOT WORK due to internal inconsistencies in the core.