How to do BT discovery and BLE scan at the same time?

asl007
Posts: 6
Joined: Wed Mar 27, 2019 9:46 am

How to do BT discovery and BLE scan at the same time?

Postby asl007 » 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

Code: Select all

esp_ble_gap_start_scanning(0)
and also

Code: Select all

esp_bt_gap_start_discovery(ESP_BT_INQ_MODE_GENERAL_INQUIRY, 10, 0)
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

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: How to do BT discovery and BLE scan at the same time?

Postby Ritesh » Sat Jun 01, 2019 10:38 am

Hi ESP32 BT Developers,

I believe both can not be possible at a time but still need to confirm with them.

Please confirm from your end like it is possible for both scanning and discovering at a time into BLE?
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 246 guests