-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Problem with GetChipID Code #3859
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
Comments
I use: |
|
I do not see your point: ESP8266 |
Appreciate your comments. Sorry, I guess I should have been more clear. My point was not to ask how to get usable info out of ESP.getEfuseMac(), but rather to ask, "What's the point of the GetChipID.ino example sketch? and Is it even correct?" The name would seem to imply that the point was to provide an equivalent to ESP8266's ESP.getChipId(). But this sketch doesn't do that at all. And worse yet, what it does do would seem to confuse newbies more than help them. I know it did me at first. It seems like this would be most helpful if this sketch gave people an exact equivalent to ESP.getChipId() (i.e. the NIC part of the MAC address as a 32-bit integer) -- particularly for those who are using ESP32s and ESP8266s in a mixed environment and need a unique ID that works with both. I'd be happy to submit the changes. I just thought I'd see what others thought of this sketch before I did. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
The code has been rewritten and a pull request created. |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Not sure if / when my pull request for this might get approved, so I'll post the code here for anyone who needs it.
|
Try this ::: For Getting the full CHIP ID --- ESP 32
|
Thanks. But the solution I'm suggesting in this case is less about getting the true chip ID -- especially since it's exactly the same as the MAC address -- and more about producing a (relatively) unique 32-bit integer that can be used as an ID number for the SOC. |
I have a question about the example code GetChipID.ino
Is this code correct? It says "The chip ID is essentially its MAC address" but it outputs the MAC address in reverse. This seems confusing at best and inaccurate at worst.
Also, if this is an attempt to mimic ESP8266's chip ID, it's not very helpful since that one is a 32-bit integer (which can be used in things like switch-case) whereas this produces something with very little usability.
Seems like it would be more helpful for people if the code showed people how to get a 32-bit integer from EfuseMac.
The text was updated successfully, but these errors were encountered: