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.

[参考译文] CC2642R-Q1:删除单个配对

Guru**** 2886930 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1630935/cc2642r-q1-delete-a-single-pairing

器件型号: CC2642R-Q1

你(们)好

SDK 版本:simplelink_cc13xx_cc26xx_sdk_7_41_00_17

删除配对时、调用 GAPBond-Addr Mgr_Find 函数会产生返回值 0、从而成功定位配对记录。  但是、调用 GAPBonds Mgr_Set 参数 (GAPBOND_ERASE_SINGLEBOND、sizeof (mac_info)、mac_info) 会返回 0x34 (bleGAPNotFound)。  

谢谢!

    uint16_t pValue = 0;
    if (GAPBondMgr_GetParameter(GAPBOND_BOND_COUNT, &pValue) == SUCCESS) {
        if (pValue != 0) {
            uint8_t mac_info[7] = {0};
            mac_info[0] = PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID;
            memcpy(&mac_info[1], connList[index].peerAddr, 6);
            bStatus_t Status = 0;
            uint8_t pIdx = 0;
            IMSG_ARRAY("mac_info: ", mac_info, 7);
            IMSG("GAPBondMgr_FindAddr %x\r\n",GAPBondMgr_FindAddr(mac_info+1, mac_info[0], &pIdx, NULL, NULL));
            Status = GAPBondMgr_SetParameter(GAPBOND_ERASE_SINGLEBOND, sizeof(mac_info), mac_info);
            IMSG("Status: 0x%x\r\n", Status);
        }
    }




  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    由衷地为此处的晚通知而道歉。 我们最后遇到了一个问题、导致缺少一些新线程。 这个问题是否仍然存在? 如果是、我将确保立即分配。  

    您是否知道如果看到这种情况、是否有有效的连接? 我相信债券不会被删除,直到没有活跃的联系。