Skip to content

CNetIf - added config method to apply new static IP settings for WiFi and Ethernet #209

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

JAndrassy
Copy link
Contributor

@JAndrassy JAndrassy commented Dec 14, 2023

It was not possible to reconnect to network with a different static IP. IP settings worked only for first invocation of begin (applied in CLwipIf::get).

in CWifi::_config netif_set_address call was missing.
in Ethernet::begin static IP was not applied if ni was already initialized.
Now new CNetIf.config does the static IP change for both.

discovered and tested with WiFiTest and LegacyEthernetTest

@per1234 per1234 added the topic: code Related to content of the project itself label Dec 14, 2023
@JAndrassy
Copy link
Contributor Author

I can test Ethernet now in Renesas Core so I added to this PR a fix for Ethernet which uses the same new config method.

@JAndrassy JAndrassy changed the title WiFiC3/CNetIf - added config method to apply new static IP settings CNetIf - added config method to apply new static IP settings foe WiFi and Ethernet Dec 19, 2023
@JAndrassy JAndrassy changed the title CNetIf - added config method to apply new static IP settings foe WiFi and Ethernet CNetIf - added config method to apply new static IP settings for WiFi and Ethernet Dec 19, 2023
in CWifi::_config netif_set_address call was missing.
in Ethernet::begin static IP was not applied if invoked second time
now the new CNetIf.config does the static IP change for both.
@facchinm facchinm merged commit 773d248 into arduino:main Mar 25, 2024
@JAndrassy JAndrassy deleted the cnetif_config branch March 25, 2024 10:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants