Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFiSTA - method setDNS as in WiFi libraries by Arduino #9021

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

JAndrassy
Copy link
Contributor

Arduino doc: https://www.arduino.cc/reference/en/libraries/wifi/wifi.setdns/

I compared more than a dozen of Arduino Networking libraries to find the common API for Arduino networking. Then I wrote a test sketch which checks how a library complies to this common API.

ESP8266 Arduino WiFi library was based on the first WiFi library by Arduino. Then ESP32 Arduino WiFi library was based on ESP8266 Arduino WiFi library. Arduino then created more WiFi libraries and the API diverged, but at least with the most recent library they looked at the ESP32 WiFi library for new method names (for example dnsIP(n)).

While doing the research and tests I do PR in Arduino networking libraries repositories with in most cases simple modifications to unify the API where it doesn't break the library (for example I will not ask esp8266 and esp32 maintainers to make WiFi.begin blocking :-) ).

@d-a-v d-a-v merged commit 7fc2caa into esp8266:master Nov 10, 2023
28 checks passed
@JAndrassy JAndrassy deleted the wifi_setdns branch November 10, 2023 14:30
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