使用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
请问此问题有解决方案吗?感谢!
esp32-idf白名单无效果
Re: esp32-idf白名单无效果
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: Google [Bot] and 98 guests