Skip to content

Conversation

@Nourbakhsh-Rad
Copy link

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 )

@gmag11
Copy link
Owner

gmag11 commented Dec 25, 2021

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.

@Nourbakhsh-Rad
Copy link
Author

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.

@Nourbakhsh-Rad
Copy link
Author

Nourbakhsh-Rad commented Dec 26, 2021

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)

@Nourbakhsh-Rad
Copy link
Author

Conflicts were resolved .....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants