-->
Page 1 of 1

ESP8266 wifi credentials without hard coding

PostPosted: Sat May 29, 2021 1:02 am
by BURHAN
i am very new to micro controllers and coding.....it all started during the COVID-19 lock-down where i started learning from YouTube videos and various sites...
i saw lots of videos about saving WiFi credentials without hard coding by creating a web server and putting your WiFi details in the web page....
There were even videos about putting your WiFi credentials through Bluetooth if its connected to the MCU or if you are using ESP-32.......
So i was thinking if i could enter my WiFi credentials from a Nextion touch display and started modifying the code...to test my code i type in my ssid and password through serial monitor to check if Serial.available() is working or not....... all works fine the MCU stores the values and then saves it to EEPROM....but here the problem starts.....it even reads the saved value...but my MCU does not connect to the WiFi with new ssid and password

Re: ESP8266 wifi credentials without hard coding

PostPosted: Mon May 31, 2021 12:05 am
by JurajA
esp8266 SDK remembers the last used credentials and connects automatically at boot.
do you use Arduino, SDK directly or IDF?
with Arduino use the WiFiManger library