如何在python中检测何时连接了蓝牙设备

时间:2019-04-02 22:12:15

标签: python bluetooth

我正在寻找一种方法来检测设备何时使用python通过蓝牙与另一台设备配对。

例如:

if (device has been added):
  print("Device has been connected")

理想情况下,这可能是扫描,因此在运行python脚本时:

while (no devices connected)
   print("There are no devices connected")
end while
print("device connected.)

0 个答案:

没有答案
相关问题