Bluetooth examples and permissions
Mark81 last edited by
I'm working on this example:
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?
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!