cancel
Showing results for 
Search instead for 
Did you mean: 

How can we store the bonding data in order to do the pairing again after a power off?

julius_21
Associate II

We are working with a SPBTLE-1S as a network module connected by a SPI port with a STM32L072 as a host.

We would like to store the pairing data of several devices, close the connection and make individual connection with every devices. We would like to store the pairing data in non_volatile memory and use it to do the bounding with every device.

Thanks

1 REPLY 1
Winfred LU
ST Employee

Please call aci_gap_set_authentication_requirement() with Bonding_Mode equal to 0x01.

The bonding information will be stored in the embedded flash.

To pair with a bonded device, simply use aci_gap_send_pairing_req() with Force_Rebond equal to 0x01.

Please refer to PM0257 - BlueNRG-1, BlueNRG-2 BLE stack v2.x programming guidelines for more information.

https://www.st.com/resource/en/programming_manual/dm00294449.pdf