Other Parts Discussed in Thread: SYSCONFIG
Hi,
We are using TI example basic_ble peripheral profile project and central example available on GitHub that is called the basic_ble_GATT_client.
I can able to do the functionality to enable and receive notifications after authentication (Pairing Status: Bond saved) success.
In peripheral code not erasing the bond information. But I have modified the code in GATT_client where to erase the bond information in central when calling the function void Menu_disconnectCB(uint8 index) and here the following code
. /*********************************************************************
* @fn Menu_disconnectCB
*
* @brief A callback that will be called once the Disconnect item
* in the workWithMenu is selected.
* Calls BLEAppUtil_disconnect to disconnect from the
* menuCurrentConnHandle.
*
* @param index - the index in the menu
*
* @return none
*/
void Menu_disconnectCB(uint8 index)
{
bStatus_t status;
// Disconnect from the selected connection
status = BLEAppUtil_disconnect(menuCurrentConnHandle);
// Print the status of the set conn phy call
MenuModule_printf(APP_MENU_GENERAL_STATUS_LINE, 0, "Call Status: Disconnect = "
MENU_MODULE_COLOR_BOLD MENU_MODULE_COLOR_RED "%d" MENU_MODULE_COLOR_RESET,
status);
//Erase Bond information
GAPBondMgr_SetParameter(GAPBOND_ERASE_ALLBONDS, NULL, NULL);
// Go back to the "connection" menu
MenuModule_goBack();
}
After erasing bond info in central again going for an connection to peripheral with authentication and (Pairing Status: Bond saved) success. Now after MTU exchange trying to enable the Notification immediately where the Pairing Status: Bond saved changed to Pairing Status: Encrypted on both central and peripheral. In peripheral not enabling the notification and when performing GATT_Write in central data receiving in peripheral.
As like same issue happening in our custom central peripheral code. can you please suggest the solution?
SDK Version : simplelink_lowpower_f3_sdk_7_40_00_64 (peripheral and central)
CCS version: CCS 12.5.0
Thanks.