Library won't compile due to breaking change in Ethernet library API #49
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
This library calls the no parameters overload of the "Arduino Mbed OS Portenta Boards" platform's bundled "Ethernet" library's
arduino::EthernetClass
constructor:Arduino_PortentaBreakout/src/Arduino_PortentaBreakout.h
Line 254 in 80389c0
That overload was removed in the 4.1.5 release of the "Arduino Mbed OS Portenta Boards" platform (arduino/ArduinoCore-mbed#901).
🐛 Compilation of the library fails:
https://github.com/arduino-libraries/Arduino_PortentaBreakout/actions/runs/9914256837/job/27392985691#step:3:171
To reproduce
🐛 Compilation fails with a "
no matching function for call to 'arduino::EthernetClass::EthernetClass()'
" error.Expected behavior
Library is compatible with the latest version of the "Arduino Mbed OS Portenta Boards" platform.
Library version
80389c0
Additional context
Originally reported at https://forum.arduino.cc/t/portenta-h7-compilling-error/1280883
Workaround
Use the last compatible version (4.1.3) of the "Arduino Mbed OS Portenta Boards" platform:
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
A menu will appear on the editor toolbar:
ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Preferences" tab will open in the Arduino IDE main panel.
arduino.checkForUpdates
in the "Search Settings" field of the "Preferences" tab.If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.
The text was updated successfully, but these errors were encountered: