title: Sending messages or datas with bluetooth via python
body: <p>How can i send messages  over bluetooth via python without key authentification like type numbers ?</p>
  
  <p>i used pybluez
  but i got this error:</p>
  
  <pre><code>File "./send", line 12, in &lt;module&gt;
      connect()
  File "./send", line 8, in connect
      sock.connect((bd_addr, port))
  File "&lt;string&gt;", line 5, in connect
      bluetooth.btcommon.BluetoothError: (111, 'Connection refused')
  </code></pre>
  
  <p>Here is the code</p>
  
  <pre><code>#!/usr/bin/python
  
  import bluetooth
  
  def connect ():
      bd_addr = "x:x:x:x:x:x"
      port = 1
      sock=bluetooth.BluetoothSocket(bluetooth.RFCOMM)
      sock.connect((bd_addr, port))
      sock.send("hello!!")
      sock.close()
  
  connect()
  </code></pre>