Skip to content

Ethernet.begin - fix parameters ordering #222

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

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

JAndrassy
Copy link
Contributor

Author of the STM32Ethernet library decided to change the ordering of the parameters for begin without mac address parameter. The EthernetC33 library is based on the STM32Ethernet library and the ordering of the parameters was not fixed.

The library is not yet used by many. It requires the Portenta C33 and a Portenta shield with Ethernet PHY module. So lets change the ordering of the parameters as soon as possible.

@per1234 per1234 linked an issue Dec 22, 2023 that may be closed by this pull request
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Dec 22, 2023
@aentinger
Copy link
Contributor

Hi @pennam ☕ 👋

Is the EthernetC33 library used anywhere in the Arduino IoT Cloud stack yet? If not I'd be willing to merge this change.

@JAndrassy
Copy link
Contributor Author

JAndrassy commented Jan 9, 2024

the IoT Cloud lib uses the ConnectionHandler lib and that uses the mac address version of begin which has the correct ordering of parameters

https://github.com/arduino-libraries/Arduino_ConnectionHandler/blob/1c5fb9b625080b2f5b700a6693115dc005b17094/src/Arduino_EthernetConnectionHandler.cpp#L84

@aentinger
Copy link
Contributor

I've also checked, let's move ahead then 👍

@aentinger aentinger merged commit 79e014e into arduino:main Jan 9, 2024
@JAndrassy JAndrassy deleted the ethernet_begin_fix_params branch January 9, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ethernet library - wrong ordering of begin parameters
3 participants