投稿

9月, 2020の投稿を表示しています

PythonでBluetooth通信

PythonでBluetooth通信する方法を現役エンジニアが解説【初心者向け】 「pip install PyBluez-win10」を使用する 「import bluetooth」でインポートする。 コード例 import bluetooth devices = bluetooth.discover_devices(lookup_names=True) print("Found {} devices.".format(len(devices))) for addr, name in devices: print(" {} - {}".format(addr, name))