BluetoothManager.framework を使用しています
iphone/ipadのBluetoothデバイスを検出するサンプル例があります。しかし、このサンプル アプリは私のデバイスを検出しません。
以下は、サンプル コードと URL のリンクです。
http://www.pocketmagic.net/2012/07/bluetooth-and-ios-use-bluetooth-in-your-iphone-apps/#.URnZy-hhNDQ
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];
}
Bluetooth デバイスを検出するための提案やサンプルをいただければ幸いです。