Bluez Programming - set scan mode with normal user
Hi all.
I have writen a bluez code for setting up bluetooth mode. Here is a function to set the mode to discoverable. Code:
void discoverable() Code:
Can't set scan mode on hci0: Permission denied (13) |
You can use udev to set the permissions of the bluetooth device. In fact, depending on your current rules, all you might need to do is add your user to the bluetooth group.
|
Thanks for your reply.I have try to change bluetooth.conf in /etc/dbus-1/system.d from root to normal user from
Code:
<policy user="root"> Code:
<policy user="user"> |
All times are GMT -5. The time now is 06:20 AM. |