Nimble persistent bonding in NVS

SodiumTsss
Posts: 2
Joined: Wed Jul 12, 2023 5:15 pm

Nimble persistent bonding in NVS

Postby SodiumTsss » Wed Jul 12, 2023 5:29 pm

Hi!

After spending 2 days trying to figure out how to make Nimble save bound devices to NVS flash, I couldn't find relevant information - only "Not yet implemented" from 5 years ago. I've been mostly using the bleprph example as a reference.

Does anyone have example code on how to save bound devices to NVS and read them from NVS, so you don't have to rebond after esp32 restarts or powers off using nimble?

Thanks in advance!

Best regards,
SodiumTsss

SodiumTsss
Posts: 2
Joined: Wed Jul 12, 2023 5:15 pm

Re: Nimble persistent bonding in NVS

Postby SodiumTsss » Thu Jul 13, 2023 10:07 am

Fixed the issue by updating esp-idf to main branch and enabling "Persist the BLE bonding keys in nvs".

Who is online

Users browsing this forum: iancoullie, snutw_ and 88 guests