我用两个演示代码扫描蓝牙设备。在
import bluetooth
nearby_devices = bluetooth.discover_devices(lookup_names=True)
print("found %d devices" % len(nearby_devices))
for addr, name in nearby_devices:
print(" %s - %s" % (addr, name))
1工作正常,但第2个代码显示错误消息。在
File "C:\Python27\Lib\site-packages\bluetooth\ble.py", line 1, in <module>
from gattlib import *
ImportError: No module named gattlib
如何安装gattlib模块? 谢谢 达伦
目前没有回答
相关问题 更多 >
编程相关推荐