2019-09-25 03:32 AM
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
2019-10-02 12:36 AM
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