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))
  

コメント

このブログの人気の投稿

Python OpenCVとWebカメラでバーコードリーダー

OpenCV 画像の足し算

OpenCV3とPython3で形状のある物体の輪郭と方向を認識する(主成分分析:PCA、固有ベクトル)