Add hostname to wifi non-ap mode

Add hostname to wifi non-ap mode
    WiFi.hostname("Nanoleaf");
This commit is contained in:
bkonings 2019-05-30 14:21:14 +02:00 committed by GitHub
parent 05f8aaacd8
commit a632c68942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,6 +317,7 @@ void setup() {
Serial.printf("Connecting to %s\n", ssid); Serial.printf("Connecting to %s\n", ssid);
if (String(WiFi.SSID()) != String(ssid)) { if (String(WiFi.SSID()) != String(ssid)) {
WiFi.begin(ssid, password); WiFi.begin(ssid, password);
WiFi.hostname("Nanoleaf");
} }
} }