[Interest] Android low latency BLE scanning
alexander.blasche at qt.io
Thu May 11 11:58:13 CEST 2017
In short there is no way at this point in time.
QtBluetooth uses Android's BluetoothAdapter.startScan() which does not take a ScanSettings field. This function is deprecated in favour of BluetoothLeScanner.startScan but QtBluetooth has not made this jump yet. Only the new scanner API supports the scan setting you are after. Another problem is that the new API required Android v21. Since Qt supports much lower Android versions the new API is not a complete replacement.
Could you please file a suggestion in bugreports.qt.io? This way your request finds its way into QtBluetooth eventually. It is the first time I heard somebody wanting access to it. Thank you.
> -----Original Message-----
> From: Interest [mailto:interest-bounces+alexander.blasche=qt.io at qt-
> project.org] On Behalf Of dusek.martin at email.cz
> Sent: Thursday, 11 May 2017 11:07
> To: interest at qt-project.org
> Subject: [Interest] Android low latency BLE scanning
> Android supports several scan modes when scanning for BLE devices:
> It seems that Qt uses balanced scan mode as device discovery takes some time.I
> want to use SCAN_MODE_LOW_LATENCY in my Qt Android app - I need fast BLE
> device discovery.
> Is setting scan mode possible in Qt Android?
> Best regards
More information about the Interest