atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

Reconfigure wifi #40

Closed jpnarkinsky closed 4 years ago

jpnarkinsky commented 4 years ago

Hi there, I'm trying to get this built and running for the first time. I configured the wrong wifi SSN (the 5.8 ghz one instead of the 2.4 ghz one) and flashed it to my device. I figure this out quickly, and I've reconfigured it, but it continues to try to connect the 5.8 ghz SSN. That is, the changes to the wifi configuration don't seem to be taking effect. I've done a idf.py fullclean, etc., but nothing seems to be taking effect.

Any suggestions? I'm brand new to ESP32, so it's certainly possible I'm doing it wrong. Thanks for any suggestions!

atanisoft commented 4 years ago

Run: idf.py erase_flash and then idf.py flash monitor.

atanisoft commented 4 years ago

Another option is enable the factory reset pin via config and flash that with the pin held low. It should force clear settings and reconfigure based on the values you enter in the config.

jpnarkinsky commented 4 years ago

Thanks! That did it.