Skip to content

Slight improvements to use this library with native ESP8266 Ethernet drivers such as lwIP_enc28j60#32

Open
Nourbakhsh-Rad wants to merge 15 commits intogmag11:mainfrom
Nourbakhsh-Rad:patch-1
Open

Slight improvements to use this library with native ESP8266 Ethernet drivers such as lwIP_enc28j60#32
Nourbakhsh-Rad wants to merge 15 commits intogmag11:mainfrom
Nourbakhsh-Rad:patch-1

Conversation

@Nourbakhsh-Rad
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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