ESP32 Modbus library

We would like to create a modbus library for Heltec ESP32. we found library that work on other Arduino but it will not compile for ESP32. anyone know about a good modbus library that work with ESP32?

We use ttl to 485 external chip and works perfectly