Page 1 of 1

How to change the wifi AP credentials on an existing (claimed) node?

Posted: Mon Nov 09, 2020 11:15 am
by hamishcunningham
Hello! Rainmaker looks great, thanks!

One question: I've moved a device to a different location and need to give it new wifi credentials... is there a way to do that without erasing flash and creating a new device?

I tried

Code: Select all

$ ./rainmaker.py provision ...node id...
but I get:
Please connect to the wifi PROV_XXXXXX and Press Enter to continue...
(and no AP appears that I can join).

Re: How to change the wifi AP credentials on an existing (claimed) node?

Posted: Tue Nov 17, 2020 2:38 pm
by ESP_Piyush
Hi Hamish,

If you are using any existing examples, pressing and holding the boot button for more than 3 seconds and then releasing it will reset the Wi-Fi credentials. You can then re-provision from the phone app.

Provisioning from CLI would work for SoftAP provisioning, but the default for ESP32 is BLE provisioning, so you won't find the network PROV_xxxxxx. The reason why CLI has SoftAP provisioning is that we had initially launched ESP RainMaker for ESP32-S2 only, which does not have BLE.

Regards,
Piyush

Re: How to change the wifi AP credentials on an existing (claimed) node?

Posted: Mon Sep 25, 2023 11:34 pm
by Cacomixtle
Hi ESP_Piyush,

I'm looking for an example of how to press and hold the boot button for more than 3 seconds and then release it to perform a specific action. I attempted to use a Semaphore Binary, but occasionally, the interrupt seems to trigger automatically. I think that incorporating a timer for the button holding might resolve this issue.

Any help would be appreciated.

Re: How to change the wifi AP credentials on an existing (claimed) node?

Posted: Wed Sep 27, 2023 5:45 pm
by ESP_Piyush
You can check the app_reset component of esp-rainmaker/examples/common which is used in all the RainMaker examples.