master
Zhengyu Peng 3 years ago
parent f19f55a4eb
commit a7955e5ebf

@ -49,8 +49,6 @@ from threading import Thread
from tcpserver import TCPServer from tcpserver import TCPServer
from btserver import BluetoothServer from btserver import BluetoothServer
import os
class Hexapod(Thread): class Hexapod(Thread):
@ -380,13 +378,6 @@ class Hexapod(Thread):
def main(): def main():
stream = os.popen('hciconfig hci0')
output = stream.read()
device_id = "hci0"
bt_mac = output.split("{}:".format(device_id))[1].split("BD Address: ")[1].split(" ")[0].strip()
print(bt_mac)
q = Queue() q = Queue()
tcp_server = TCPServer(q) tcp_server = TCPServer(q)
tcp_server.start() tcp_server.start()

Loading…
Cancel
Save