title: How to detect Iphone/Ipad devices with bluetooth ON?
body: <p>I am using BluetoothManager.framework</p>
  
  <p>I have the sample example for detecting bluetooth device of iphone/ipad. But this sample app is not detecting my devices. </p>
  
  <p>Below is the link for sample code and url:</p>
  
  <p><a href="http://www.pocketmagic.net/2012/07/bluetooth-and-ios-use-bluetooth-in-your-iphone-apps/#.URnZy-hhNDQ" rel="nofollow">http://www.pocketmagic.net/2012/07/bluetooth-and-ios-use-bluetooth-in-your-iphone-apps/#.URnZy-hhNDQ</a></p>
  
  <pre><code>BluetoothManager *btManager;
  
  - (IBAction)scanButtonAction
  {
    if ([btManager enabled])
    {
          // start scan
          [btManager  setDeviceScanningEnabled:YES];
     }
     else
     {
      showMessage(@"Error", @"Turn Bluetooth on first!");
     }
  
  }
  
  - (IBAction)bluetoothON
  {
      NSLog(@"bluetoothON called.");
      [btManager setPowered:YES];
      [btManager setEnabled:YES]; 
  }
  
  - (IBAction)bluetoothOFF
  {
      NSLog(@"bluetoothOFF called.");
      [btManager setEnabled:NO]; 
      [btManager setPowered:NO];
  }
  </code></pre>
  
  <p>Any suggestions or samples to detect bluetooth devices will be appreciated.</p>