我只是尝试使用PyBluez在 PyCharm 中从 Python 实现蓝牙。我被这个特殊的错误困住了。我试图搜索这个错误但找不到它。有人可以帮忙吗?
这是我的代码
>>> from bluetooth import discover_devices
>>> nearby_devices = discover_devices()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\bluetooth\msbt.py", line 15, in discover_devices
devices = bt.discover_devices(duration=duration, flush_cache=flush_cache)
IOError: The RPC server is unavailable.