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

How Can I add Ethernet2.h library? #30

Open huytranthanh1508 opened 6 years ago

huytranthanh1508 commented 6 years ago

I am using W5500 Chip for ethernet communication. However, I have to use ethernet2.h for all examples. When I declare ethernet2.h for Lamp or Switch Examples. It shows error with "Error compiling for board Teensy 3.6.". I use teensy 3.6 Thank you

AdrianTschannen commented 6 years ago

I am trying also to use Modbus in combination with ethernet2. Probably this could help: If you have a look at modbus.h code, you will realize that there the library Ethernet.h is included:

include

include

include

include

I received some Errors by compiling. Changing to

include

solved this issue.

wvengen commented 6 years ago

I've gotten this to work with https://github.com/wvengen/modbus-arduino