fg1 / BLEHeartRateLogger

Bluetooth Low-Energy Heart Rate Monitor data logging in Python
Other
127 stars 48 forks source link

Note method for allowing non-root invocation #13

Closed kortschak closed 3 years ago

kortschak commented 3 years ago

The setcap command can be used to give hcitool permission to be used by users other than root.

sudo setcap cap_net_raw+eip $(eval readlink -f `which hcitool`)
sudo setcap cap_net_admin+eip $(eval readlink -f `which hciconfig`)

Is adequate (gatttool does not appear to need capability changes).

fg1 commented 3 years ago

Thank you! The README was updated to include the commands.