蓝牙
python蓝牙
搜索蓝牙
nearby_devices = bluetooth.discover_devices(lookup_names=True)
遍历搜索到的全部蓝牙 for addr, name in nearby_devices: print(" %s - %s" % (addr, name))
本机蓝牙MAC地址 bluetooth.read_local_bdaddr()
python蓝牙
搜索蓝牙
nearby_devices = bluetooth.discover_devices(lookup_names=True)
遍历搜索到的全部蓝牙 for addr, name in nearby_devices: print(" %s - %s" % (addr, name))
本机蓝牙MAC地址 bluetooth.read_local_bdaddr()