diff --git a/src/main.cpp b/src/main.cpp index 58fae4c..ec538c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -597,7 +597,11 @@ void setup() { FastLED.addLeds(leds, NUM_LEDS); FastLED.setBrightness(currentBrightness); pinMode(ENC_SW, INPUT_PULLUP); - WiFi.softAP(WIFI_SSID, WIFI_PASSWORD); + WiFi.mode(WIFI_MODE_AP); + String apMac = WiFi.softAPmacAddress(); + apMac.replace(":", ""); + String ssid = String(WIFI_SSID) + "-" + apMac.substring(apMac.length() - 4); + WiFi.softAP(ssid.c_str(), WIFI_PASSWORD); server.on("/", handleRoot); server.on("/save", HTTP_POST, handleSave); server.begin();