小编Gul*_*lke的帖子

bluetooth.btcommon.BluetoothError:(2,'没有这样的文件或目录')

我只是想在https://code.google.com/p/pybluez/source/browse/trunk/examples/simple/rfcomm-server.py上运行RFCOMM服务器示例

$ python2 rfcomm-server.py
Traceback (most recent call last):
  File "rfcomm-server.py", line 20, in <module>
    profiles = [ SERIAL_PORT_PROFILE ],
  File "/usr/lib/python2.7/site-packages/bluetooth/bluez.py", line 176, in advertise_service
    raise BluetoothError (str (e))
bluetooth.btcommon.BluetoothError: (2, 'No such file or directory')
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误.我的代码正在使用Windows,但我无法使用Ubuntu 15.10.

bluetooth

12
推荐指数
3
解决办法
4592
查看次数

标签 统计

bluetooth ×1