2

我有代码:

import bluetooth, socket
addr = '70:4E:ED:20:E0:9C'
port = 1
s = bluetooth.BluetoothSocket( bluetooth.RFCOMM )
s.connect( (addr, port) )

我得到 OSError:

Traceback (most recent call last):
File "example.py", line 5, in <module>
  s.connect( (addr, port) )
File "C:\Users\b\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bluetooth\msbt.py", 
  line 96, in connect
bt.connect (self._sockfd, addr, port)
OSError: >;CG5=

如何解决?

4

0 回答 0