title: Python Socket Bluetooth
body: <p>I'm trying to pair my cardio bluetooth sensor to my windows pc.
  After some searches I found pyBluez for x64 systems and now i'm able to discover bluetooth devices around me, their names,address and services.
  My Polar sensor has an L2CAP protocol and teorically is too symple to listen what transmits.</p>
  
  <p>I found an example like this</p>
  
  <pre><code>server_sock=bluetooth.BluetoothSocket(bluetooth.RFCOMM)
  
  port = 5
  server_sock.bind(port)
  server_sock.listen(1)
  
  client_sock = server_sock.accept()
  print ("Accepted connection from "+address)
  
  data = client_sock.recv(1024)
  print ("received [%s]" % data)
  </code></pre>
  
  <p>Also with different ports<br>
  when i run this code, i never read "accepted connection...."</p>
  
  <p>Probably the reason is the lack of L2CAP for pyBluez windows version.
  I tried also a socket connection but the "socket.AF_BLUETOOTH" method isn't available for windows too.
  Have you any suggestion?</p>
  
  <p>Thanks a lot and sorry for my englis</p>