Update esp8266-nanoleaf-webserver.ino
hostname configuration is now set before wifi starts
This commit is contained in:
parent
8b81985b49
commit
9b0d2ac4e3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user