Open shakirhussain78652 opened 3 years ago
If you want to read the SSID and password, after you made a succesfull connection in the Captive Portal, you simple need to read out: WiFi.SSID() //this contains the SSID WiFi.psk() //this contains the password
Thank you so much for your help. That saved my day.
Also please help me to enter these
WiFi.SSID() //this contains the SSID
WiFi.psk() //this contains the password
into this code
Hello, I am new here and don't have much knowledge about programming. I want to use the auto connect non-blocking code for my project and for that I will be needing the SSID and PASSWORD entered by the user from config portal into my remotexy project.
define REMOTEXY_WIFI_SSID "Redmi" // these should be fetch from the config portal
define REMOTEXY_WIFI_PASSWORD "123456789" // these should be fetch from the config portal
define REMOTEXY_CLOUD_SERVER "cloud.remotexy.com"
below is the autocoonect non blocking code that i will be using
![Untitled](https://user-images.githubusercontent.com/78459887/107600387-a31e0c80-6c49-11eb-8bd5-a8de696eb3ba.png)
include // https://github.com/tzapu/WiFiManager
WiFiManager wm;
void setup() { WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once: Serial.begin(115200);
}
void loop() { wm.process(); // put your main code here, to run repeatedly:
}