我需要将所有连接的蓝牙设备连接到我的计算机。我找到了图书馆,但无法连接设备
简单查询示例:
import bluetooth
nearby_devices = bluetooth.discover_devices(lookup_names=True)
print("Found {} devices.".format(len(nearby_devices)))
for addr, name in nearby_devices:
print(" {} - {}".format(addr, name))
Run Code Online (Sandbox Code Playgroud)