How to setup the enviroment that bluepy can scan without sudo?
问题 I wrote some Python3 script, that scans for devices. If they match a "name" I am connecting to them and do some ble stuff. The script is build on top of the bluepy module. One think I don't like, is that I need to run the device scanning as sudo (like sudo python3 getDev.py ). Any ideas how to make a user being able to scan without root rights? Guess I need to add the local user to a group etc. Any ideas are welcome 回答1: On linux Bluetooth protocol stack need special privileges to interact