From 94a3f9ab91df7f6235d35f7bd55d6e95829d8674 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Thu, 18 Jan 2018 10:55:22 -0800 Subject: [PATCH] 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. --- examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino | 2 -- examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino | 2 -- examples/WebRadio/WebRadio.ino | 2 -- 3 files changed, 6 deletions(-) diff --git a/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino b/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino index 625584b..a250bb1 100644 --- a/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino +++ b/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino @@ -62,8 +62,6 @@ void setup() WiFi.softAPdisconnect(true); WiFi.mode(WIFI_STA); - WiFi.hostname("melody"); - WiFi.begin(SSID, PASSWORD); // Try forever diff --git a/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino b/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino index e6f9ab8..df01346 100644 --- a/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino +++ b/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino @@ -60,8 +60,6 @@ void setup() WiFi.softAPdisconnect(true); WiFi.mode(WIFI_STA); - WiFi.hostname("melody"); - WiFi.begin(SSID, PASSWORD); // Try forever diff --git a/examples/WebRadio/WebRadio.ino b/examples/WebRadio/WebRadio.ino index b4f9e80..320ede8 100644 --- a/examples/WebRadio/WebRadio.ino +++ b/examples/WebRadio/WebRadio.ino @@ -248,8 +248,6 @@ void setup() WiFi.softAPdisconnect(true); WiFi.mode(WIFI_STA); - WiFi.hostname("melody"); - WiFi.begin(SSID, PASSWORD); // Try forever