Remove hostname setting for ESP32 compatability

The examples were setting a hostname for the WiFi connection, but this is
done via a different call on the ESP32 vs. the ESP8266.  To avoid #ifdef
explosion, simply remove the call as it's unneeded anyway.

Thanks to @reaper7 for reporting this in pull #33.
This commit is contained in:
Earle F. Philhower, III committed 2018-01-18 10:57:02 -08:00
1 parent 244007b0c5
commit 94a3f9ab91
3 files changed
-6

No files matched your search

@@ -62,8 +62,6 @@ void setup()
WiFi.softAPdisconnect(true);
WiFi.mode(WIFI_STA);
WiFi.hostname("melody");
WiFi.begin(SSID, PASSWORD);
// Try forever
@@ -60,8 +60,6 @@ void setup()
WiFi.softAPdisconnect(true);
WiFi.mode(WIFI_STA);
WiFi.hostname("melody");
WiFi.begin(SSID, PASSWORD);
// Try forever
-2
View File
@@ -248,8 +248,6 @@ void setup()
WiFi.softAPdisconnect(true);
WiFi.mode(WIFI_STA);
WiFi.hostname("melody");
WiFi.begin(SSID, PASSWORD);
// Try forever