- changes from RPi side

This commit is contained in:
2023-09-08 11:26:27 +01:00
parent 1802af57c3
commit b8939c9124
3 changed files with 21 additions and 14 deletions

View File

@@ -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."""