title: CoreBluetooth:Disconnect peripheral Connection from application
body: <p>My application related to bluetooth communication with the peripheral device.Every functionality is working fine right from discovering to connecting .While coming to disconnecting the peripheral from the application i have written code like this </p>
  
  <pre><code>  -(void) disconnect
   {
   if (_selectedPeripheral != nil &amp;&amp;
      _selectedPeripheral.state != CBPeripheralStateDisconnected)
    {
      NSLog(@"Peripheral disconnecting");
      [_centralManager cancelPeripheralConnection:_selectedPeripheral];
      _selectedPeripheral = nil;
    }
   } 
  </code></pre>
  
  <p>When i click button this above method is calling and app showing that peripheral is disconnected and when i came out of the application and look into settings /bluetooth/ .Peripheral is showing connected.How to stop connection the peripheral in the device level i.e in the settings .Please help me with the proper solution.</p>