Arduino Forum

Using Arduino => Microcontrollers => Topic started by: mattbaum on Jun 29, 2020, 07:30 pm

Title: WiFiManager with NodeMCU
Post by: mattbaum on Jun 29, 2020, 07:30 pm
(I may have posted this originally to the wrong topic.)


I'm trying to use WiFiManager with my NodeMCU and a sketch which is working.


After wasting a lot of time with wiFiManager, I reduced the problem to a single line to start up:
wifiManager.autoConnect();
-  but nothing worked.

In desperation, I tried a brand new, never used new NodeMCU module.
SUCCESS!  The module showed up on my cellphone, and I was able to log onto it and give it my new credentials.

Now, the new module responds the same as did the original.  It seems to have retained the credentials given it in response to my "discovering" it with my cellphone;  it is no longer "discoverable."

My conclusion is that in order to re-program the chip, it must be first reset to the original factory conditions.  My problem is how to do this.

    -   Matt
Title: Re: WiFiManager with NodeMCU
Post by: 6v6gt on Jul 01, 2020, 03:57 am
A complete re-flashing of the node mcu seems a drastic solution for a simple problem.
Do you find anything here? :
https://github.com/tzapu/WiFiManager/issues/142

Do you see an option in the IDE for behavior during program upload, where you specify flash size of your ESP8266 etc., for erasing the flash contents on upload?