使用Linux的多个BLE连接

时间:2014-11-14 23:47:27

标签: bluetooth-lowenergy

嘿,即使我希望将多个设备(传感器)连接到我的电脑。我的流程正在为单个连接工作。它就是这样的

bluetooth_adr = sys.argv[1]
tool = pexpect.spawn('gatttool -b ' + bluetooth_adr + ' --interactive')
tool.expect('\[LE\]>')
print "Preparing to connect. You might need to press the side button..."
tool.sendline('connect')
# test for success of connect
tool.expect('\[CON\].*>')
tool.sendline('char-write-cmd 0x29 01')
tool.expect('\[LE\]>')

如何修改这个以便连接多个传感器?

谢谢

0 个答案:

没有答案
相关问题