From 003a26de6a941263ce7b832a164ad8576fb59f66 Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Tue, 22 Feb 2022 20:06:03 -0500 Subject: [PATCH] Update btserver.py --- software/raspberry pi/btserver.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/software/raspberry pi/btserver.py b/software/raspberry pi/btserver.py index 6e71ea4..65830db 100644 --- a/software/raspberry pi/btserver.py +++ b/software/raspberry pi/btserver.py @@ -55,13 +55,6 @@ class BluetoothServer(Thread): bt_mac = output.split("{}:".format(device_id))[1].split( "BD Address: ")[1].split(" ")[0].strip() - # import commands - # cmd = "hciconfig" - # device_id = "hci0" - # status, output = commands.getstatusoutput(cmd) - # bt_mac = output.split("{}:".format(device_id))[1].split("BD Address: ")[1].split(" ")[0].strip() - # print bt_mac - self.mac = bt_mac self.port = 10 self.bt_socket = socket.socket( @@ -80,6 +73,7 @@ class BluetoothServer(Thread): pass else: while True: + self.cmd_queue.put('standby') # Wait for a connection # print('wait for a connection') # self.status.emit(self.LISTEN, '')