How to scan Bluetooth "classic" and LE devices at the same time in C++?

645 Views Asked by At

How to scan Bluetooth "classic" and LE devices at the same time in C++? I'm using library BlueZ in C++ on Linux (OpenWrt, Ubuntu) and I know how to scan classic device and low-energy device separately, but I need all devices in one shot. The same way how it works in Android or Ubuntu.

My solution for now is do first classic scan and then lescan, but it takes a long time. For example: classic scan ~8sec, lescan ~6sec. And which one should be first? I want to get all nearby devices in as short period of time.

0

There are 0 best solutions below