So, my wifi is a hotspot password protected. I was developing a program until I decided to comment the ssid and passwords from it, to prevent the ESP from connecting to the internet. But then it still connected. After some debugging, I decided to upload an empty sketch. It still connects to the hotspot!
What is going on?! How does it still know my SSID and password when loaded with an empty sketch!?
1 Answer 1
The Espressif esp8266 SDK remembers the SSID and password on flash to start connecting immediately after boot. The WiFi channel is stored in the RTC memory (cleared on power down)
You can control this with WiFi.persistent() and WiFi.setAutoConnect().
-
Thanks. That seems to be it!A. Vieira– A. Vieira09/11/2019 18:47:50Commented Sep 11, 2019 at 18:47