Add hostname to wifi non-ap mode
Add hostname to wifi non-ap mode WiFi.hostname("Nanoleaf");
This commit is contained in:
parent
05f8aaacd8
commit
a632c68942
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user