Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. qt.bluetooth.windows: Could not await descriptor read result
Forum Updated to NodeBB v4.3 + New Features

qt.bluetooth.windows: Could not await descriptor read result

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 136 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    ljxiango
    wrote on last edited by
    #1

    The same code runs normally on Android, but when running on Windows (Qt 6.5 + MSVC2019 64-bit), the following message is displayed: "qt.bluetooth.windows: Could not await descriptor read result."
    When running on Android, the following code prints "00", but no output is generated when running on Windows.
    Is there any way to resolve this issue?

    if (properties.testFlag(QLowEnergyCharacteristic::Notify))
    {
        charaToNotify_ = characteristic;
        notifyDescriptor_ = characteristic.descriptor(QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration);
        if(notifyDescriptor_.isValid())
        {
            currentService_->writeDescriptor(notifyDescriptor_, QByteArray::fromHex("0100"));       
        }
        QString str = QString::fromStdString(notifyDescriptor_.value().toHex().toUpper().toStdString());
        qDebug()<<str;
    }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved