mtongnz / ESP8266_ArtNetNode_v2

ESP8266 based WiFi ArtNet to DMX, RDM and LED Pixels
GNU General Public License v3.0
612 stars 158 forks source link

Hotspot SSID #26

Closed kaeltaz closed 7 years ago

kaeltaz commented 7 years ago

Hotspot SSID do not contain last digits of the MAC address

mtongnz commented 7 years ago

???

kaeltaz commented 7 years ago

This is not last digits of the MAC address

zrzut ekranu 172

mtongnz commented 7 years ago

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 commented 7 years ago

This is the code used to generate the SSID:

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