title: iOS how to discover bluetooth headset and its events
body: <p>I am trying to discover "Bluetooth Headset" and get its events. I read the <strong>"CoreBluetooth"</strong> documentation and implemented sample code as below. It does not fire the delegate method '<code>didDiscoverPeripheral</code>'.</p>
  
  <p>Is there any solution for this?</p>
  
  <p>Code:</p>
  
  <pre><code>CBCentralManager *myCentralManager;
  [myCentralManager scanForPeripheralsWithServices:nil options:nil];
  
  
  -(void)centralManagerDidUpdateState:(CBCentralManager *)central{
  
      //following line prints CBCentralManagerStatePoweredOn
  
      NSLog(@"state:%@", [self getCentralManagerState:central.state]);
  }
  
  
  //following method does not fire
  
  -(void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI
  {
  
  }
  </code></pre>