Page 1 of 1

Associate Esp32C3 node to Rainmaker account and to new wifi provider

Posted: Fri Jul 08, 2022 10:42 am
by MaximeFarin
Hello,

I am using a ESP32C3 node with Linux and the Visual Studio Code Espressif extension.
I would like to add the node to my Rainmaker account to flash the firmware OTA and modify some parameters of the flashed firmware with the Rainmaker smartphone application.

During my early tests, I flashed a firmware and the monitor showed me a QR code. Then, with this QR code, I was able to associate the node to my Rainmaker account and provision the ESP32 with the local WiFi.
However, I then deleted the node from my Rainmaker account and flashed another firmware. The problem is that the node remembers the WiFi credentials and is not showing a QR code any more. Therefore, I can not associate it again to my Rainmaker account. Is there another way to associate the node to my Rainmaker account (e.g. using CLI)?

I have another problem: when the firmware is flashed to a node and the node is associated with my Rainmaker account, how can I change the Wifi credentials if I want to install the node in another place with a different Wifi but by keeping the node associated with my Rainmaker account? Is there a way to change the Wifi parameters on the node after the Rainmaker account association (e.g. by BLE)?

Thank you for your answers.

Re: Associate Esp32C3 node to Rainmaker account and to new wifi provider

Posted: Tue Jul 19, 2022 6:10 pm
by ESP_Piyush
In order to re-provision a node to add it back to the same/different account and with the same/different Wi-Fi credentials, you can use the `esp_rmaker_wifi_reset()` API. Docs for the various reset APIs can be found here. Additionally, all examples have Wi-Fi reset and factory reset configured on the BOOT button. Press and hold the button for 3+ seconds to trigger a Wi-Fi reset. You can read about this here. We also have a service called "System Service" which will enable these reset functions from the phone apps. However, the phone apps don't support this yet. This will be available shortly.