zhouhan0126 / WIFIMANAGER-ESP32

wifimanager-esp32
MIT License
401 stars 135 forks source link

How to check to which network you are connected ? #26

Closed GeorgeFlorian closed 5 years ago

GeorgeFlorian commented 5 years ago

My ESP32 connects to a WiFi Network and I have no idea which one. How can I see which one ? I've read the documentation and looked inside the wifiManager.h and .cpp files and couldn't find a function to do that.

I've never seen the web configuration portal.

Also, how can I modify the web configuration portal using SPIFFS file?

Thank you !

GeorgeFlorian commented 5 years ago

I've seen little to no activity here. Is the author not offering any support for this library ?

LukasAV commented 5 years ago

You can display the SSID of the current connected network with wifiMan.getSSID() where wifiMan is your WiFiManager object. To prevent connecting to the network use startConfigPortal("APName"); to force the ESP to open up an access point and captive portal to connect to another network.

GeorgeFlorian commented 5 years ago

You can display the SSID of the current connected network with wifiMan.getSSID() where wifiMan is your WiFiManager object. To prevent connecting to the network use startConfigPortal("APName"); to force the ESP to open up an access point and captive portal to connect to another network.

Thank you for your answer ! I never used this library ! You shouldn't use an unsupported library !

LukasAV commented 5 years ago

Is there an alternative WiFiManager library with support for the ESP32?

GeorgeFlorian commented 5 years ago

Is there an alternative WiFiManager library with support for the ESP32?

I really do not know ! Haven't looked for one. I use WiFi.h that comes standard with arduino-core for ESP32.

shariq-azim commented 3 years ago

You can display the SSID of the current connected network with wifiMan.getSSID() where wifiMan is your WiFiManager object. To prevent connecting to the network use startConfigPortal("APName"); to force the ESP to open up an access point and captive portal to connect to another network.

Hi there, I was trying to print the ssid of the network last connected to/or set in wifi manager. but it doesn't compiles

eg.. WiFiManager wifiManager; wifiManager.setTimeout(60);

wifiManager.setDebugOutput(true);

if(!wifiManager.autoConnect("AutoConnectA0P")) { Serial.println("failed to connect and hit timeout"); delay(3000); } Serial.println("start"); Serial.println( wifiManager.getSSID()); // Serial.println( WiFiManager.getConfigPortalSSID() );

ssid= wifiManager.getSSID();

i get error in last line stating "'class WiFiManager' has no member named 'getSSID'"