title: Not able to reconnect using bluetoothgatt.connect() + android ble
body: <p>We are writing a ble application where want to have a persistent connection with the peripheral we want to connect. For the same purpose we want to re-connect with the peripheral whenever we loose a existing connection. So android application as a central just tries to reconnect using bluetoothgatt.connect() method.</p>
  
  <p>But whenever we try to do that our reconnection gets failed with </p>
  
  <p>12-02 21:47:11.865: D/BluetoothGatt(31963): onClientConnectionState() - status=6 clientIf=6 device=******** callback.</p>
  
  <p>The strange thing here is status=6 which is request not supported.</p>
  
  <p>Initially we get connected to the peripheral with bluetoothdevice.connectGatt method with or without autoconnect flag set.</p>
  
  <p>Another thing we observe is that originally when we are loosing connection we are getting following callback</p>
  
  <p>onClientConnectionState() - status=8 clientIf=6 device=******** callback. Where status 8 is GATT_INSUF_AUTHORIZATION. But if you see the btsnoop_hci.log file the reason for disconnection is connection timeout which is expected because we went out of range. But status=8 is misleading.</p>
  
  <p>Another thing we found not obvious is that if I discard the existing bluetoothgatt object after disconnection and just create a new one using bluetoothdevice.connectGatt we get connected to the device which is more weird.</p>
  
  <p>We are observing all these things on nexus 5 with lollipop and few other devices.</p>
  
  <p>Any help will be appreciated. </p>