- changes from RPi side
This commit is contained in:
@@ -14,7 +14,7 @@ class Bluetoothctl:
|
||||
def __init__(self):
|
||||
out = subprocess.check_output("/usr/sbin/rfkill unblock bluetooth", shell = True)
|
||||
# print("Bluetoothctl")
|
||||
self.child = pexpect.spawn("/usr/bin/bluetoothctl", echo = False)
|
||||
self.child = pexpect.spawn("/usr/bin/sudo /usr/bin/bluetoothctl", echo = False)
|
||||
|
||||
def get_output(self, command, pause = 0):
|
||||
"""Run a command in bluetoothctl prompt, return output as a list of lines."""
|
||||
|
||||
Reference in New Issue
Block a user