esp32 stres old wifi data

peppeg85
Posts: 3
Joined: Mon Jun 03, 2019 4:38 pm

esp32 stres old wifi data

Postby peppeg85 » Mon Jan 13, 2020 10:04 am

hello, im new to esp32, i'm trying many arduino skatches, a strange behavior happened yesterday, i made a basic program that read a bm280 and displays on a oled, and it works fine. in the sketch tere is also a connection to my wifi, with the arduino wifi.h library, and i stored the wifi credentials inside two variables with

const char *SSID = "Your SSID";
const char *WiFiPassword = "Your Password";

and then

WiFi.begin(ssid, password);

and that's ok, it connects to the wifi.

after that i run the wifimanager example by this github: https://github.com/khoih-prog/ESP_WiFiManager

and with my surprise after uploading the code without specify the ssid and the password of my wifi, the esp connects to my wifi automaticaly. how is it possible? the wifi.h library stores the data inside a non volatile memory? i think that after uploading the new vode it didn't connect o wifi, it should run as access point and there i see the networks available.

thanks in advance, i hope i explained fine

Who is online

Users browsing this forum: No registered users and 20 guests