1 of 1 people found this helpful
On PSoC BLE device side, you have to store the bonding data in the flash once both the devices get paired. For that you have to use the API Storebondinddata() API once you get the event PENDING_FLASH_WRITE.
// STORING BONDED INFORMATION TO FLASH
apiresult = CyBle_StoreBondingData(0u);
if ( apiresult == CYBLE_ERROR_OK)
printf("Bonding data stored\r\n");
printf ("Bonding data storing pending\r\n");
Please refer the attached reference project. On CySmart side, you will get a pop-up asking whether to store the bonding information or not. You have to click on Yes.
Please note that you have to set the correct settings in the security settings of the CySmart. You have to click on Configure Master settings on CySmart GUI to get the security settings page. Ensure that the settin for Bonding is Bondable.
Thank you very much!
My problem was that I was using default settings of Dongle Security Level - Secure Connection, instead of Authenticated with Encryption.