andresarmento / modbus-arduino

A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
BSD 3-Clause "New" or "Revised" License
453 stars 267 forks source link

Ethernet2 shield #17

Closed remco1271 closed 7 years ago

remco1271 commented 7 years ago

The modbusIp won't work with the ethernet2 shield. http://www.arduino.org/products/shields/arduino-ethernet-shield-2 I chanced the library from Ethernet to Ethernet2. I can compile the program. It is only possible to ping the device for a few seconds and then it lose the connection to the Ethernet.

wvengen commented 7 years ago

I'm seeing this as well, I'm afraid it requires the introduction of a new class. Will probably have a go at it somewhere in the coming weeks.

wvengen commented 7 years ago

I've added support for the Ethernet 2 at https://github.com/wvengen/modbus-arduino and verified that I can use it to communicate using IP (TCP) and UDP.