扫描和能够连接到我的钛传感器设备,但根据服务要求,它不工作。
bluetooth = Bluetooth()
bluetooth.start_scan(5)
while bluetooth.isscanning():
adv = bluetooth.get_adv()
if adv:
if(str(binascii.hexlify(adv.mac).decode()) == '78a50454b267'):
conn = bluetooth.connect(adv.mac)
print(type(conn))
service = bluetooth.get_service()
print("got service", service)服务不是打印的。循环被停止,没有响应。
就连我也尝试过这么多的服务方法
错过了任何重要的功能。?关贸总协定是否存在连接问题。?如何导入.gatt及其服务,特点??
发布于 2018-01-08 04:08:56
试着利用睡眠时间,像下面的字典那样获取数据,事情会好起来的.干杯!
services = dict()
time.sleep(0.050);
services = conn.services()https://stackoverflow.com/questions/47431470
复制相似问题