Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
5.15.5
-
None
Description
Using Bluetooth Low energy I would like to open a L2CAP connection using a given UUID and PSM.
The only way I found out how to do that is using QBluetoothSocket and calling:
void QBluetoothSocketPrivate::connectToService(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode mode)
I know that because we have native application which in the end calls
const IOReturn status = [device openL2CAPChannelAsync:&channel withPSM:psm delegate:self];
through
- (IOReturn)connectAsyncToDevice:(const QBluetoothAddress &)address
withPSM:(BluetoothL2CAPChannelID)psm
The problem is that (MAC) addresses do not work on Mac anymore. You have to rely on the device UUID. We need a different connectToService method which would open the L2CAP channel using CoreBluetooth.
Is something like that planned? I'd be curious to know, since we are interested in cross platform development, we would like to use QBluetooth (LE) for iOS, MacOS, Android, Windows and Linux.