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

BTLE advertising on Android does not work with setLocalName set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.2.0 FF
    • None
    • Android
    • 21
    • Qt6_Foundation_Sprint 35

    Description

      If I call
      advertisingData.setLocalName("BluetoothTestDevice");
      before advertising in
      https://codereview.qt-project.org/c/qt/qtconnectivity/+/347091/7

      it fails to start advertising with

      W QtBluetoothGattServer: Services successfully added: true
      D BluetoothGattServer: onServiceAdded() - service=1f85e37c-ac16-11eb-ae5c-93d3a763feedstatus=0
      D libbluetoothtestdevice_armeabi-v7a.so: qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::AdvertisingState
      W QtBluetoothGattServer: Starting to advertise.
      E QtBluetoothGattServer: Advertising failure: 1
      D libbluetoothtestdevice_armeabi-v7a.so: qt.bluetooth: QLowEnergyControllerPrivate setting state to QLowEnergyController::UnconnectedState
      

      If we remove the setLocalName call, it works.

      Attachments

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

        Activity

          People

            andreasbuhr Andreas Buhr
            andreasbuhr Andreas Buhr
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes