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

[Android 13] Replace deprecated BT LE methods

    XMLWordPrintable

Details

    • Android
    • 13
    • 8ae30c552 (dev), 712bdeb61 (dev), 163ce3e87 (6.5), 8363df31f (6.5)
    • Foundation Sprint 73, Foundation Sprint 74

    Description

      Android 13 (API level 33, Tiramisu) deprecates few methods that Qt bluetooth uses

      BluetoothGatt::writeCharacteristic() and writeDescriptor()
      BluetoothGattCharacteristic::getValue() and setValue()
      BluetoothGattDescriptor::getValue() and setValue()
      BluetoothGattCallback::onCharacteristicChanged(), onCharacteristicRead(), and onDescriptorRead()
      BluetoothGattServer::notifyCharacteristicChanged()
      

      These should be replaced with the suggested overloads. The work could be started with the emulator which has nowadays Bluetooth support, but ultimately a real device is needed to run the live bluetooth tests.

      Most if not all of the changed APIs have similar underlying rationale (values are passed with explicit byte arrays to avoid memory issues) => likely best to do these with one commit / closely related group of commits.

      Attachments

        Issue Links

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

          Activity

            People

              vuokko Juha Vuolle
              vuokko Juha Vuolle
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews