Open Nourbakhsh-Rad opened 2 years ago
I'd rather a solution that do not force to modify existing examples. This direction would break all former code using older versions. I guess using preprocessor directives like #define USE_ETHERNET
would make a cleaner integration of ethernet on ESP8266.
Only by restarting the device and applying the connection settings, it is possible to change the mode from WiFi to Ethernet at runtime. In this case, the preprocessor is not a good solution. While using weak functions allows you to use this library on other platforms ( which support AsyncUDP ) with a few changes.
I changed the default of weak functions to be compatible with the old versions ..... (old version users can use the new version without any changes)
Conflicts were resolved .....
Hi @gmag11 I added some weak functions to use this library with native ESP8266 Ethernet drivers such as lwIP_enc28j60 ( Sorry I made a mistake in creating pull request, please delete my invalid pull requests )