Use same SSID/password settings as core examples (#252)

This commit is contained in:
Earle F. Philhower, III authored and GitHub committed 2020-04-14 22:33:10 -07:00
1 parent 0fd2d0413b
commit 7df1e005e5
3 files changed
+24 -9

No files matched your search

+8 -3
View File
@@ -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) {