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?
Using Blufi feature
Re: Using Blufi feature
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.
Please refer the blufi example, nvs_rw_blob example.
Re: Using Blufi feature
ok, this is a way to do it.
Thx.
Thx.
-
- Posts: 2
- Joined: Fri Aug 25, 2017 5:20 pm
Re: Using Blufi feature
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
I hope this helps.
-kuit
Who is online
Users browsing this forum: No registered users and 181 guests