소스 검색

Add getter for SSID and password accessible from external of the WiFiManager class. (#97)

(cherry picked from commit c7d350a52bcb9fc52e61a2a3a8cdfe9db3d08bcf)
Jonathan Dumaresq 3 년 전
부모
커밋
499ca88b58
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/ESPAsyncWiFiManager.h

+ 7 - 0
src/ESPAsyncWiFiManager.h

@@ -188,6 +188,13 @@ public:
   // sets a custom element to add to options page
   void setCustomOptionsElement(const char *element);
 
+  String getConfiguredSTASSID(){
+      return _ssid;
+  }
+  String getConfiguredSTAPassword(){
+      return _pass;
+  }
+
 private:
   AsyncWebServer *server;
 #ifdef USE_EADNS