-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot detect/scan classic bluetooth devices #372
Comments
As you can see this is BLE library which means it only works with bluetooth LE. You cant work with bluetooth classic devices or use ESP32 as bluetooth classic device. |
Is there a purpose for the CLASSIC_BT_ENABLED flag from BLEDevice.cpp? |
No and yes. When memory release will be implemented eventualy it could crash user application if it will be dual mode app. |
But the underlying sdk supports classic bluetooth? Because the ESP32 does according datasheets. Thank you for your time and patience. |
Yes, esp32 and esp-idf sdk support classic bluetooth. Here you can find nice project: |
Is it possible to detect/scan bluetooth classic devices somehow? |
3 years later, and I have the same question |
This is BLE only library. |
Just to follow up for future travelers who land here from Google: CLASSIC_BT_ENABLED tells the BLE library to enable DUAL mode (BLE & SPP). This is important if you want the ESP32 to works as a dual mode device and support either connection type. You still need to use the Bluetooth classic library to actually implement Bluetooth classic SPP, and you handle that connection with that library, not this one. This flag just makes sure that Bluetooth is not enabled as BLE only, which would prohibit the SPP library from working correctly. |
I acquired an ESP32 recently (a ESP-WROOM32-Breakout).
And tried the ble_scan example with Arduino. This works ok: Upload works. Some BT devices are listed as found.
However the devices listed there are only "low energy" ones.
This is true even if I define CLASSIC_BT_ENABLED. And as another test I even set the ESP_BT_MODE_CLASSIC_BT for esp_bt_controller_enable() in BLEDevice.cpp.
Parallely I checked this with an app on my Android phone ("BlueScan") which shows some more devices as type "Classic". All of which are not found by the ESP32.
(The one I am actually looking for also shows up as classic there...)
Does this sound like a hardware defect? Or are there any shortcomings in the libraries known?
The text was updated successfully, but these errors were encountered: