Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95560

Make L2CAP with MacOS using UUID work (LowEnergy)

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.5
    • Fix Version/s: 6.3
    • Labels:
      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.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            gerhard_stein Gerhard Stein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes