I wanted to use Qt and Qt creator to advertise on my laptop with BLE. When I start the application example "heart-rate server", it gives the error "advertising error". Btmon shows the error "HCI command disallowed". (https://i.stack.imgur.com/433yc.png) (https://i.stack.imgur.com/LJzqQ.png)
I am running as root. https://i.stack.imgur.com/36kN1.png
I’m using Qt version 5.15.2. Trying it on a linux laptop with ubuntu version 22.04.2
When I tried to advertise with bluetoothctl "advertise on" in the terminal. It did work and all commands are allowed in btmon.
How can I solve this?
It may be your app does not have the right capabilities. Try:
If that does not work: