蓝牙如何一次扫描到多个设备

xuanzihao
Posts: 8
Joined: Thu Dec 06, 2018 3:59 am

蓝牙如何一次扫描到多个设备

Postby xuanzihao » Tue Jan 08, 2019 6:13 am

hello!
请教一下各位大哥,如何能一次扫描到多个设备?现在是通过广播数据,单个单个
再ESP_GAP_SEARCH_INQ_RES_EVT 中 进行匹配。感觉非常慢

能否提供一下 BLE_SCAN_DUPLICATE_ENABLE 的使用方法?如何能获取到多个设备的广播包的数据?

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 = 0x30,//0x50,
.scan_window = 0x30,//0x30,
.scan_duplicate = BLE_SCAN_DUPLICATE_ENABLE
};

esp_ble_gap_set_scan_params(&ble_scan_params)

Who is online

Users browsing this forum: No registered users and 43 guests