Hi Sir,
How to reject dedicated peer device (by BD address) connection request? Which callback and api I could use?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Sir,
How to reject dedicated peer device (by BD address) connection request? Which callback and api I could use?
Hi JXS,
BUT, GAPBOND_PAIRING_STATE_STARTED is not equal to GAPROLE_CONNECTED, right?
/*********************************************************************
* @brief Terminates the existing connection.
*
* Public function defined in peripheral.h.
*/
bStatus_t GAPRole_TerminateConnection(void)
{
if (gapRole_state == GAPROLE_CONNECTED)
{
return (GAP_TerminateLinkReq(selfEntity, gapRole_ConnectionHandle,
HCI_DISCONNECT_REMOTE_USER_TERM));
}
else
{
return (bleIncorrectMode);
}
}