From a632c6894280ad7adcbbff24e9623286816b9153 Mon Sep 17 00:00:00 2001 From: bkonings Date: Thu, 30 May 2019 14:21:14 +0200 Subject: [PATCH] Add hostname to wifi non-ap mode Add hostname to wifi non-ap mode WiFi.hostname("Nanoleaf"); --- esp8266-nanoleaf-webserver.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/esp8266-nanoleaf-webserver.ino b/esp8266-nanoleaf-webserver.ino index 29f486a..7a1ba16 100644 --- a/esp8266-nanoleaf-webserver.ino +++ b/esp8266-nanoleaf-webserver.ino @@ -317,6 +317,7 @@ void setup() { Serial.printf("Connecting to %s\n", ssid); if (String(WiFi.SSID()) != String(ssid)) { WiFi.begin(ssid, password); + WiFi.hostname("Nanoleaf"); } }