Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
1.2.0
-
None
-
ab51692c535286b31e5343010d248c297dabc40d
Description
This is an new addition required to fix the QBluetoothServiceDiscoveryAgent unit test.
QBluetoothServiceDiscoveryAgent returns errors for any error that occurs during service discovery. This can be misleading. When doing a scan and discovering services on all contactable devices they may not respond to SDP, or maybe travel out of range before SDP can be performed. Errors in this case can be safely ignored since they don't affect the user.
On the other hand, if QBluetoothServiceDiscoveryAgent(QBluetoothAddress) is used, service discovery is done on a single device and errors are important and should be returned and emitted.
QBluetoothServiceDiscoveryAgentPrivate::singleDevice provides a bool to be able to provide this error handling, it is currently not being used.