Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork218
WiFi Ethernet fix MAC address reversed order#980
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
JAndrassy commentedOct 25, 2024
MACAddress(buff) is legacy Ethernet API, macAddress(buff) is WiFi API. so this solution preserves the error in PortnetaEthernet library and for Mbed Core WiFi library this PR changes the behavior of the macAddress function (and the 'tradition' of reversed MAC in WiFi libraries). so I guess there isn't a good solution for this. I would just remove the reversion completely. |
pennam commentedOct 25, 2024
Thanks@JAndrassy i will doublecheck it, I was assuming it was reversed also in Ethernet library My goal was primarly to align the behaviour of |
JAndrassy commentedOct 25, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
we removed it recently for compatibility with esp32, esp8266, rp2040 ... |
pennam commentedOct 25, 2024
yeah i've disagreed with myself one second after writing this 🙂 I will doublecheck the Ethernet MACAddress behaviour , It feels a bit strange to me that is not reversing the byte order since it is using the same socketWrapper function used in WiFi macAddress but maybe it get twisted one more time before. |
JAndrassy commentedOct 25, 2024
I meant Ethernet API in general. the Wiznet Ethernet library, the UIPEtherner etc |
pennam commentedOct 25, 2024
ah ok, got it! |
pennam commentedNov 6, 2024
rebased on latest main to fix ci.
|
ac359a2 intoarduino:mainUh oh!
There was an error while loading.Please reload this page.
MACAddressis deprecated keeping the original reversed behaviour.uint8_t* macAddress(uint8_t * mac)returns byte aligned withString macAddress()