Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MacOs BLE "unsupported descriptor" and "CBPeripheralManager can only accept this command while in the powered on state"
Forum Updated to NodeBB v4.3 + New Features

MacOs BLE "unsupported descriptor" and "CBPeripheralManager can only accept this command while in the powered on state"

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 207 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.
  • D Offline
    D Offline
    davidesalvetti
    wrote on last edited by
    #1

    Hi,

    I'm developing an application for MacOs using Qt 5.15.2 clang 64bit on a Mac mini with macOS Big Sur 11.1.

    I'm trying to run the Heart Rate Server Example but I'm having some problem. When I run the application with the debugger I get the following application output:

    2021-07-22 16:22:03.774769+0200 heartrate-server[43797:13434312] [qt.bluetooth.osx] unsupported descriptor "{00002902-0000-1000-8000-00805f9b34fb}"
    2021-07-22 16:22:03.775480+0200 heartrate-server[43797:13434385] [CoreBluetooth] WARNING: <CBPeripheralManager: 0x100a17a80> has no restore identifier but the delegate implements the peripheralManager:willRestoreState: method. Restoring will not be supported
    2021-07-22 16:22:04.831350+0200 heartrate-server[43797:13434385] [CoreBluetooth] API MISUSE: <CBPeripheralManager: 0x100a17a80> can only accept this command while in the powered on state
    

    What should I do to fix the unsupported descriptor error? And what should I do to remove the "can only accept this command while in the powered on state"? I found that the problem for this second sentence is that I'm calling startAdvertising to early, I should wait that the powered state is actually on, but I did not find a way to wait for this state at the moment. Does anybody have an idea?

    P.s: I set the "Privacy - Bluetooth Always Usage Description" into the Info.plist file.

    Thanks in advance.

    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