Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. self.host = "00:0D:19:EA:28:52"
  2. self.port = 3
  3. self.sock = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
  4. self.sock.connect((self.host, self.port))
  5.  
  6. File "Client.py", line 21, in __init__
  7. self.sock.connect((self.host, self.port))
  8. File "/usr/lib/python2.7/socket.py", line 224, in meth
  9. return getattr(self._sock,name)(*args)
  10. socket.error: [Errno 52] Invalid exchange
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement