How to do BT discovery and BLE scan at the same time?
Posted: Thu May 30, 2019 8:26 am
Hi,
I want to use the ESP32 to scan/discover both ble devices and bt classic devices around me.
I want my device to be continuously doing scanning and discovery for the devices that are present.
Can the device do both scanning and discovery simultaneously? What is the reccomended way of doing this?
Can I call and also
Or should I call esp_ble_gap_start_scanning with a duration and then when it stops call esp_bt_gap_start_discovery and stop the discovery process after some time before starting the scan again ?
Thanks and regards
I want to use the ESP32 to scan/discover both ble devices and bt classic devices around me.
I want my device to be continuously doing scanning and discovery for the devices that are present.
Can the device do both scanning and discovery simultaneously? What is the reccomended way of doing this?
Can I call
Code: Select all
esp_ble_gap_start_scanning(0)
Code: Select all
esp_bt_gap_start_discovery(ESP_BT_INQ_MODE_GENERAL_INQUIRY, 10, 0)
Thanks and regards