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

I’m looking to do something similar, using a rs4585 temp/humidity sensor with esp32 or esp8266.
I’m really new using the heltech esp’s and coding.
But I can learn from samples!

Can you share what you have done and how the code is put together to communicate with Rs485 to send and receive data from the sensor?

Thanks :pray:!