Can the ArduinoModBus library work on an ESP32 board?

I would like to use the ArduinoModbus - Arduino Reference library in my ESP32 and I do see that it is not supported in the list of device.

But just the same, I tried it and I am having errors in compiling the library.

Has anyone tried to make it work or attempted to use it in their ESP32 device?

Thanks

I think you need to use the ESP32 version, I'm not sure the Arduino version will work.

From the page that you linked to

This library is compatible with the megaavr, samd, mbed_nano, mbed_portenta, mbed_opta architectures

I note that this list does not include the ESP32, which you have already noted, so why would you expect it to work ?

1 Like

Yes, thanks. I was just hoping to somehow find another lead or advice on what to use as an alternative

Wow thank you. I will take a look.

I use https://github.com/syvic/ModbusMaster/blob/master/README.mkd on esp32.

Hi, I`m using https://github.com/4-20ma/ModbusMaster with ESP32 and it works great.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.