Use same SSID/password settings as core examples (#252)
This commit is contained in:
1 parent
0fd2d0413b
commit
7df1e005e5
3 files changed
+24
-9
No files matched your search
@@ -13,8 +13,13 @@
|
|||||||
// To run, set your ESP8266 build to 160MHz, update the SSID info, and upload.
|
// To run, set your ESP8266 build to 160MHz, update the SSID info, and upload.
|
||||||
|
|
||||||
// Enter your WiFi setup here:
|
// Enter your WiFi setup here:
|
||||||
const char *SSID = "....";
|
#ifndef STASSID
|
||||||
const char *PASSWORD = "....";
|
#define STASSID "your-ssid"
|
||||||
|
#define STAPSK "your-password"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char* ssid = STASSID;
|
||||||
|
const char* password = STAPSK;
|
||||||
|
|
||||||
// Randomly picked URL
|
// Randomly picked URL
|
||||||
const char *URL="http://streaming.shoutcast.com/80sPlanet?lang=en-US";
|
const char *URL="http://streaming.shoutcast.com/80sPlanet?lang=en-US";
|
||||||
@@ -62,7 +67,7 @@ void setup()
|
|||||||
WiFi.softAPdisconnect(true);
|
WiFi.softAPdisconnect(true);
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
|
|
||||||
WiFi.begin(SSID, PASSWORD);
|
WiFi.begin(ssid, password);
|
||||||
|
|
||||||
// Try forever
|
// Try forever
|
||||||
while (WiFi.status() != WL_CONNECTED) {
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
|||||||
@@ -12,8 +12,13 @@
|
|||||||
// To run, set your ESP8266 build to 160MHz, update the SSID info, and upload.
|
// To run, set your ESP8266 build to 160MHz, update the SSID info, and upload.
|
||||||
|
|
||||||
// Enter your WiFi setup here:
|
// Enter your WiFi setup here:
|
||||||
const char *SSID = ".....";
|
#ifndef STASSID
|
||||||
const char *PASSWORD = ".....";
|
#define STASSID "your-ssid"
|
||||||
|
#define STAPSK "your-password"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char* ssid = STASSID;
|
||||||
|
const char* password = STAPSK;
|
||||||
|
|
||||||
// Randomly picked URL
|
// Randomly picked URL
|
||||||
const char *URL="http://kvbstreams.dyndns.org:8000/wkvi-am";
|
const char *URL="http://kvbstreams.dyndns.org:8000/wkvi-am";
|
||||||
@@ -59,7 +64,7 @@ void setup()
|
|||||||
WiFi.softAPdisconnect(true);
|
WiFi.softAPdisconnect(true);
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
|
|
||||||
WiFi.begin(SSID, PASSWORD);
|
WiFi.begin(ssid, password);
|
||||||
|
|
||||||
// Try forever
|
// Try forever
|
||||||
while (WiFi.status() != WL_CONNECTED) {
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
|||||||
@@ -37,8 +37,13 @@
|
|||||||
// To run, set your ESP8266 build to 160MHz, update the SSID info, and upload.
|
// To run, set your ESP8266 build to 160MHz, update the SSID info, and upload.
|
||||||
|
|
||||||
// Enter your WiFi setup here:
|
// Enter your WiFi setup here:
|
||||||
const char *SSID = "....";
|
#ifndef STASSID
|
||||||
const char *PASSWORD = "....";
|
#define STASSID "your-ssid"
|
||||||
|
#define STAPSK "your-password"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char* ssid = STASSID;
|
||||||
|
const char* password = STAPSK;
|
||||||
|
|
||||||
WiFiServer server(80);
|
WiFiServer server(80);
|
||||||
|
|
||||||
@@ -262,7 +267,7 @@ void setup()
|
|||||||
WiFi.softAPdisconnect(true);
|
WiFi.softAPdisconnect(true);
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
|
|
||||||
WiFi.begin(SSID, PASSWORD);
|
WiFi.begin(ssid, password);
|
||||||
|
|
||||||
// Try forever
|
// Try forever
|
||||||
while (WiFi.status() != WL_CONNECTED) {
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
|||||||
Reference in new issue
Block a user