我正在寻找一种方法来检测设备何时使用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.)