This commit is contained in:
tablatronix
2022-03-29 14:46:08 -05:00
parent 91826229cb
commit 9cd81e3af9
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ void setup() {
// reset settings - wipe stored credentials for testing
// these are stored by the esp library
//wm.resetSettings();
wm.resetSettings();
// Automatically connect using saved credentials,
// if connection fails, it starts an access point with the specified name ( "AutoConnectAP"),
@@ -65,7 +65,7 @@ void handleRoute(){
}
void setup() {
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once:
Serial.begin(115200);
@@ -259,10 +259,11 @@ void setup() {
}
void wifiInfo(){
WiFi.printDiag(Serial);
Serial.println("SAVED: " + (String)wm.getWiFiIsSaved() ? "YES" : "NO");
Serial.println("SSID: " + (String)wm.getWiFiSSID());
Serial.println("PASS: " + (String)wm.getWiFiPass());
Serial.println("[WIFI] WIFI INFO DEBUG");
// WiFi.printDiag(Serial);
Serial.println("[WIFI] SAVED: " + (String)(wm.getWiFiIsSaved() ? "YES" : "NO"));
Serial.println("[WIFI] SSID: " + (String)wm.getWiFiSSID());
Serial.println("[WIFI] PASS: " + (String)wm.getWiFiPass());
}
void loop() {