Work in Progress Modbus Library adapted to be used with ESP32. This library uses FreeRTOS to handle modbus tasks It uses mb as a global Modbus Ip instance. Check the examples. Needs Modbus_ESP32.h library from https://github.com/joaocampos89/modbus_ESP32