Using Blufi feature

pirlouwi
Posts: 2
Joined: Tue Mar 28, 2017 2:49 pm

Using Blufi feature

Postby pirlouwi » Tue Mar 28, 2017 3:11 pm

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?

seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

Re: Using Blufi feature

Postby seopyoon » Wed Mar 29, 2017 6:12 am

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.

pirlouwi
Posts: 2
Joined: Tue Mar 28, 2017 2:49 pm

Re: Using Blufi feature

Postby pirlouwi » Wed Mar 29, 2017 2:23 pm

ok, this is a way to do it.
Thx.

kuitthegeek
Posts: 2
Joined: Fri Aug 25, 2017 5:20 pm

Re: Using Blufi feature

Postby kuitthegeek » Fri Aug 25, 2017 5:43 pm

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

Who is online

Users browsing this forum: No registered users and 110 guests