-
Notifications
You must be signed in to change notification settings - Fork 964
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
[Feature Request]: Refactor getMacAddr function #5205
Comments
We can't change this for all ESP32 boards, as they would get new node numbers after a factory reset and thus would look like two nodes in the database. It would probably be fine to do this for ESP32-C6, but are those really your MAC addresses? They look too nice to be true, to be honest. |
I can't provide the real MAC addresses from these two devices, but this illustrates the real-life problem with these targets. I currently have at least five sitting on my desk, and they all have the same node ID. From the esp-idf docs
Some manufacturers are placing |
Okay, fair. I think it would be OK to change it like this for ESP32-C6 specifically. |
Closed by #5208. |
Platform
ESP32
Description
Hi,
I would like to propose a refactor of the
getMacAddr
function to retrieve the MAC address in MAC-48 format for compatibility with IEEE 802.15.4.Specifically, I suggest changing this function from:
to
This change will help eliminate node ID conflicts by ensuring that the MAC address used is always in the MAC-48 format, which is required for devices utilizing IEEE 802.15.4.
Example
I have two ESP32-C6 targets, and their MAC addresses lead to identical NodeIDs:
1st device:
MAC: 11:22:33:44:55:66:77:88
BASE MAC: 11:22:33:66:77:88
MAC_EXT: 44:55
2nd device:
MAC: 11:22:33:44:55:66:77:89
BASE MAC: 11:22:33:66:77:89
MAC_EXT: 44:55
As a result, both devices have the same ID: !33445566.
The text was updated successfully, but these errors were encountered: