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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user