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. Bluetooth examples and permissions
Forum Updated to NodeBB v4.3 + New Features

Bluetooth examples and permissions

Scheduled Pinned Locked Moved Unsolved General and Desktop
bluetoothqt5.7root
1 Posts 1 Posters 1.5k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mark81
    wrote on 17 Jun 2016, 20:19 last edited by
    #1

    Hi!
    I'm working on this example:

    https://doc-snapshots.qt.io/qt5-dev/qtbluetooth-heartrate-server-example.html

    to understand a little better some features.
    First question, if I don't run the application as root I get a "permission denied" about hciconfig. But I don't want to run it as root. I added the dbus policies for my current user and set cap for hciconfig and related tools:

    sudo setcap 'cap_net_raw,cap_net_admin+eip' `which hciconfig`
    

    But I still need to run as root. What am I missing?

    Second question.
    I want to customize the GATT server example and embed it into a class. But I have some difficulties to handle the QScopePointers and the const auto variables.

    Might someone explain how should I modify them to write a class? The goal is to add signals/slots mechanism to allow the application to manage the GATT server (i.e. start/stop advertising, read/write values etc...). I don't want to rely on the main.cpp because I want to embed into a bigger project...

    Thanks in advance!

    1 Reply Last reply
    0

    1/1

    17 Jun 2016, 20:19

    • Login

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