硬件:安信ESP32-C3-13 C3FN4
软件:ESP-IDF工具,v4.4
例程:ble_spp_client
扫描参数配置如下
static esp_ble_scan_params_t ble_scan_params = {
.scan_type = BLE_SCAN_TYPE_ACTIVE,
.own_addr_type = BLE_ADDR_TYPE_PUBLIC,
.scan_filter_policy = BLE_SCAN_FILTER_ALLOW_ALL,
.scan_interval = 0x50,
.scan_window = 0x30,
.scan_duplicate = BLE_SCAN_DUPLICATE_ENABLE
};
我在程序中想调用esp_ble_scan_dupilcate_list_flush()进行手动清除扫描结果,但编译时报错:
../main/spp_client_demo.c: In function 'esp_gap_cb':
../main/spp_client_demo.c:304:9: error: implicit declaration of function 'esp_ble_scan_dupilcate_list_flush'; did you mean 'esp_ble_gap_update_whitelist'? [-Werror=implicit-function-declaration]
esp_ble_scan_dupilcate_list_flush();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
esp_ble_gap_update_whitelist
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
如何配置可以使得该函数可用?
esp_ble_scan_dupilcate_list_flush函数报错
Re: esp_ble_scan_dupilcate_list_flush函数报错
目前仅 esp32 支持使用此函数,后续会进行优化的
Who is online
Users browsing this forum: No registered users and 56 guests