From 88cbce9efc0f96af582aa7a6729b1dd1ee040099 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Tue, 15 Feb 2022 12:44:21 +0100 Subject: [PATCH] `Ethernet::MACAddress()` implementation Use Mbed's `macAddress()` implementation for Arduino `MACAddress()` The Mac Address seems to be stable/valid only after `::begin()`, However, I can't explain myself why my Portenta H7's OUI `2B:00:1B` cannot be found on the various OUI databases available on internet. --- libraries/Ethernet/src/Ethernet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/Ethernet/src/Ethernet.cpp b/libraries/Ethernet/src/Ethernet.cpp index 54c00ffe8..fb34b33ef 100644 --- a/libraries/Ethernet/src/Ethernet.cpp +++ b/libraries/Ethernet/src/Ethernet.cpp @@ -84,4 +84,9 @@ unsigned long arduino::EthernetClass::getTime() { return 0; } +void arduino::EthernetClass::MACAddress(uint8_t *mac_address) +{ + macAddress(mac_address); +} + arduino::EthernetClass Ethernet;