Hi All
我試著實現white list mac功能,以下設定方式的確該手機能scan到,其它都scan不到cc2640,
但scan的到卻無法連線,不知是何原因,能否請各位給我一點幫助,謝謝您
SDK Ver:BLE-STACK-2.2.2
Sample Code:Simple Peripheral
Code:
SimpleBLEPeripheral_init()
{
#ifndef MAC_LIST
uint8_t advertFilter = GAP_FILTER_POLICY_WHITE;
uint8_t bdAddrList[B_ADDR_LEN] = {0xA8, 0x66, 0x7F, 0xE8, 0xA2, 0xE5}; // Phone BLE MAC
HCI_LE_ClearWhiteListCmd();
HCI_LE_AddWhiteListCmd(HCI_PUBLIC_DEVICE_ADDRESS, bdAddrList);
GAPRole_SetParameter(GAPROLE_ADV_FILTER_POLICY, sizeof(uint8_t), &advertFilter);
#endif
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t), &initialAdvertEnable);
………
}
Viki Shi:
可否把抓包数据提供一下,看什么原因造成无法连接