diff --git a/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino b/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino index 4569b6c..8ea4515 100644 --- a/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino +++ b/examples/StreamMP3FromHTTP/StreamMP3FromHTTP.ino @@ -13,8 +13,13 @@ // To run, set your ESP8266 build to 160MHz, update the SSID info, and upload. // Enter your WiFi setup here: -const char *SSID = "...."; -const char *PASSWORD = "...."; +#ifndef STASSID +#define STASSID "your-ssid" +#define STAPSK "your-password" +#endif + +const char* ssid = STASSID; +const char* password = STAPSK; // Randomly picked URL const char *URL="http://streaming.shoutcast.com/80sPlanet?lang=en-US"; @@ -62,7 +67,7 @@ void setup() WiFi.softAPdisconnect(true); WiFi.mode(WIFI_STA); - WiFi.begin(SSID, PASSWORD); + WiFi.begin(ssid, password); // Try forever while (WiFi.status() != WL_CONNECTED) { diff --git a/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino b/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino index 792e218..0b9ab09 100644 --- a/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino +++ b/examples/StreamMP3FromHTTP_SPIRAM/StreamMP3FromHTTP_SPIRAM.ino @@ -12,8 +12,13 @@ // To run, set your ESP8266 build to 160MHz, update the SSID info, and upload. // Enter your WiFi setup here: -const char *SSID = "....."; -const char *PASSWORD = "....."; +#ifndef STASSID +#define STASSID "your-ssid" +#define STAPSK "your-password" +#endif + +const char* ssid = STASSID; +const char* password = STAPSK; // Randomly picked URL const char *URL="http://kvbstreams.dyndns.org:8000/wkvi-am"; @@ -59,7 +64,7 @@ void setup() WiFi.softAPdisconnect(true); WiFi.mode(WIFI_STA); - WiFi.begin(SSID, PASSWORD); + WiFi.begin(ssid, password); // Try forever while (WiFi.status() != WL_CONNECTED) { diff --git a/examples/WebRadio/WebRadio.ino b/examples/WebRadio/WebRadio.ino index 23e1c16..e8a0326 100644 --- a/examples/WebRadio/WebRadio.ino +++ b/examples/WebRadio/WebRadio.ino @@ -37,8 +37,13 @@ // To run, set your ESP8266 build to 160MHz, update the SSID info, and upload. // Enter your WiFi setup here: -const char *SSID = "...."; -const char *PASSWORD = "...."; +#ifndef STASSID +#define STASSID "your-ssid" +#define STAPSK "your-password" +#endif + +const char* ssid = STASSID; +const char* password = STAPSK; WiFiServer server(80); @@ -262,7 +267,7 @@ void setup() WiFi.softAPdisconnect(true); WiFi.mode(WIFI_STA); - WiFi.begin(SSID, PASSWORD); + WiFi.begin(ssid, password); // Try forever while (WiFi.status() != WL_CONNECTED) {