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

QLowEnergyController::connectToDevice() timeout could be unified on mobile platforms

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None

    Description

      Timeout behaviour is different on Android and iOS. According to Apple documentation, connection attempt does not time out. Android has a special parameter for that. Current Qt Android implementation:

      connectMethod.invoke(mRemoteGattDevice, qtContext, false, gattCallback, 2 /*TRANSPORT_LE*/);
      
      and
      
      mBluetoothGatt = mRemoteGattDevice.connectGatt(qtContext, false, gattCallback);

      sets the flag explicitly to false. Proposing to either change it to 'true' or make it configurable in Qt API.

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            kiibimees Lauri Laanmets
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes