From 9b0d2ac4e3ca266bea3dd354249ea692802c3774 Mon Sep 17 00:00:00 2001 From: Lorenz Nimmervoll <32486857+NimmLor@users.noreply.github.com> Date: Sun, 1 Sep 2019 14:23:06 +0200 Subject: [PATCH] Update esp8266-nanoleaf-webserver.ino hostname configuration is now set before wifi starts --- esp8266-nanoleaf-webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }