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

hamishcunningham
Posts: 8
Joined: Mon Jun 05, 2017 7:50 pm

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

Postby hamishcunningham » Mon Nov 09, 2020 11:15 am

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).

ESP_Piyush
Posts: 45
Joined: Wed Feb 20, 2019 7:02 am

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

Postby ESP_Piyush » Tue Nov 17, 2020 2:38 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest