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.

CC2640R2F-Q1: 白名单 API HCI_LE_RemoveWhiteListCmd 和 HCI_LE_AddWhiteListCmd

Part Number: CC2640R2F-Q1

SDK 版本: simplelink_cc2640r2_sdk_4_20_00_04

工程:simple_peripheral_oad_offchip

步骤
1:APP设备在白名单策略关闭时,连接simple_peripheral设备,simple_peripheral设备绑定功能已启用;
2:simple_peripheral设备通过调用函数,启用白名单;
uint8_t adv_filter_policy = GAP_FILTER_POLICY_WHITE_CON;
GAPRole_SetParameter(GAPROLE_ADV_FILTER_POLICY, sizeof(uint8_t), &adv_filter_policy);

3:simple_peripheral设备通过调用函数,将APP设备移出白名单;HCI_LE_RemoveWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS, &ypfWhiteListBuf);

4:APP设备断开后,再次连接simple_peripheral设备,无法连接simple_peripheral设备;
5:simple_peripheral设备通过调用函数,将APP设备加入白名单;HCI_LE_AddWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS, &ypfWhiteListBuf);
6:APP设备再次连接simple_peripheral设备,无法连接simple_peripheral设备;

问题:
1: simple_peripheral设备调用函数 HCI_LE_RemoveWhiteListCmd后,APP设备无法连接simple_peripheral设备,证明APP设备已从simple_peripheral设备白名单中移出,对吗?
2:simple_peripheral设备通过调用函数 HCI_LE_AddWhiteListCmd 将APP设备加入simple_peripheral设备白名单后,为什么APP设备无法连接simple_peripheral设备,方法不对还是没有成功吗?