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

Arduino-ESP32 v3.0.0-rc.1 changes network interface usage. Need to import wifi.h and use NetworkManager for MAC Address #568

Closed
tyeth opened this issue Apr 16, 2024 · 0 comments · Fixed by #569

Comments

@tyeth
Copy link
Contributor

tyeth commented Apr 16, 2024

Builds failed due to unavailability of certain defines in WiFi.h which is no longer imported by WiFiClientSecure.h which we import in the ESP32 network provisioning class. See here:
espressif/arduino-esp32#9496

Additionally there was an issue with the device id being generated (from MAC address) after arduino-esp32 v3.0.0-rc.1, see here: espressif/arduino-esp32#9509
Resolved by switching to Network.macAddress (which calls through to NetworkManager which accesses the base ESP32 chips mac), the other network interfaces must be brought up (.begin() or scan etc) before they populate the individual interface mac addresses.

Build runs and passes (except C3 as still default partition size) in CI, as well as locally, for the VL53L4CD by adding changes to src/network_interfaces/Wippersnapper_ESP32.h in this commit:
tyeth@656f32d#diff-c32ef9a1c2bfd1bc9a7cb064310e7433975912191664669be9dba5fbd743a823

Will be moved to separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant