diff --git a/esp8266-nanoleaf-webserver.ino b/esp8266-nanoleaf-webserver.ino index 7a1ba16..69597ed 100644 --- a/esp8266-nanoleaf-webserver.ino +++ b/esp8266-nanoleaf-webserver.ino @@ -316,8 +316,8 @@ void setup() { WiFi.mode(WIFI_STA); Serial.printf("Connecting to %s\n", ssid); if (String(WiFi.SSID()) != String(ssid)) { - WiFi.begin(ssid, password); WiFi.hostname("Nanoleaf"); + WiFi.begin(ssid, password); } }