@SuppressWarnings("unchecked") public void connect(final BluetoothDevice device,final ILogSession session){
  if (mManagedDevices.contains(device))   return;
  mManagedDevices.add(device);
  BleManager<BleManagerCallbacks> manager=mBleManagers.get(device);
  if (manager != null) {
    if (session != null)     manager.setLogger(session);
    manager.connect(device);
  }
 else {
    mBleManagers.put(device,manager=initializeManager());
    manager.setGattCallbacks(BleMulticonnectProfileService.this);
    manager.setLogger(session);
    manager.connect(device);
  }
}

@ SuppressWarnings ( "unchecked" ) public void connect ( final BluetoothDevice device , final ILogSession session ) { if ( mManagedDevices . contains ( device ) ) return ; mManagedDevices . add ( device ) ; BleManager < BleManagerCallbacks > manager = mBleManagers . get ( device ) ; if ( manager != null ) { if ( session != null ) manager . setLogger ( session ) ; manager . connect ( device ) ; } else { mBleManagers . put ( device , manager = initializeManager ( ) ) ; manager . setGattCallbacks ( BleMulticonnectProfileService . this ) ; manager . setLogger ( session ) ; manager . connect ( device ) ; } }
adds the given device to managed and stars connecting to it . if the device is already connected this method does nothing .
