Page 1 of 1

Using Blufi feature

Posted: Tue Mar 28, 2017 3:11 pm
by pirlouwi
I try to find relevant information about the use of Blufi on a wroom-32.
I would like to use Blufi for head-less configuration of the WiFi link, then, I expect the SSID and passwd to be saved somehow.
Idealy such credentials should survive a cold reboot.
The esp32 should try to connect with those saved credentials if found.
Is it possible with Blufi API?

Re: Using Blufi feature

Posted: Wed Mar 29, 2017 6:12 am
by seopyoon
You can utilise Blufi application, and once you get 'GOT_IP' signal, you can save the ssid and password in the flash memory.

Please refer the blufi example, nvs_rw_blob example.

Re: Using Blufi feature

Posted: Wed Mar 29, 2017 2:23 pm
by pirlouwi
ok, this is a way to do it.
Thx.

Re: Using Blufi feature

Posted: Fri Aug 25, 2017 5:43 pm
by kuitthegeek
I found an even easier way to do it in the current example. All you need to do is find the initialize_wifi function, and change the esp_wifi_set_storage(WIFI_STORAGE_RAM) to WIFI_STORAGE_FLASH. This will save the wifi credentials you pass over Bluetooth into the flash memory instead of RAM, and when the system reboots it looks to the flash, finds what is there, and connects. Best thing is it only requires a very minor change, and you don't have to implement the whole nvs blob.

I hope this helps.

-kuit