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

Hotspot SSID #26

Closed
kaeltaz opened this issue Feb 19, 2017 · 4 comments
Closed

Hotspot SSID #26

kaeltaz opened this issue Feb 19, 2017 · 4 comments

Comments

@kaeltaz
Copy link

kaeltaz commented Feb 19, 2017

Hotspot SSID do not contain last digits of the MAC address

@mtongnz
Copy link
Owner

mtongnz commented Feb 19, 2017

???

@kaeltaz
Copy link
Author

kaeltaz commented Feb 19, 2017

This is not last digits of the MAC address

zrzut ekranu 172

@mtongnz
Copy link
Owner

mtongnz commented Feb 19, 2017

It's not meant to be. It's a 5 digit number derived from the chipID (which the ESP8266 does use to generate it's MAC address).

The purpose of the number is to ensure that if there are multiple units, they will have a unique SSID. It will stay the same for the entire life of the unit as the chipID never changes.

This method is only used when the default hotspot SSID is in use. If you change it, the number wont be used.

@mtongnz
Copy link
Owner

mtongnz commented Feb 19, 2017

This is the code used to generate the SSID:

if (strcmp(hotspotSSID, "espArtNetNode") == 0 || hotspotSSID[0] == '\0') sprintf(hotspotSSID, "espArtNetNode_%05u", (ESP.getChipId() & 0xFF));

@mtongnz mtongnz closed this as completed Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants