esp32-idf白名单无效果

terry_cui
Posts: 1
Joined: Sat May 16, 2020 12:42 am

esp32-idf白名单无效果

Postby terry_cui » Sat May 16, 2020 12:50 am

使用esp32-idf v3.3

为了使esp32 ble client扫描达到最好的性能,因此想加入白名单过滤配对过得设备,
esp_ble_gap_update_whitelist
通过esp_ble_gap_get_whitelist_size,发现whilelist remain size有变化,说明mac地址有添加成功

但是在scan时候还是会扫描到所有random address设备,没有任何过滤作用。
static esp_ble_scan_params_t ble_scan_params = {
.scan_type = BLE_SCAN_TYPE_ACTIVE,
.own_addr_type = BLE_ADDR_TYPE_RANDOM,
.scan_filter_policy = BLE_SCAN_FILTER_ALLOW_ONLY_WLST,
.scan_interval = 50,// N*0.625
.scan_window = 30,
.scan_duplicate = BLE_SCAN_DUPLICATE_DISABLE
};

有查看论坛别人也有类似问题,未见回复。
https://esp32.com/viewtopic.php?f=13&p=44058

请问此问题有解决方案吗?感谢!

ESP_XieWX
Posts: 27
Joined: Fri Jun 22, 2018 7:39 am

Re: esp32-idf白名单无效果

Postby ESP_XieWX » Thu Oct 29, 2020 7:58 am

Sorry, the whitelist only support public address and static random address without encryption. We will find a way to fix this problem, but we are still not sure how long it will take.

Who is online

Users browsing this forum: No registered users and 107 guests