Re: Basic question
Re: Basic question
- Subject: Re: Basic question
- From: Matt Gillette <email@hidden>
- Date: Tue, 29 Jan 2013 15:12:59 -0800
CBCentralManger only searches for Bluetooth LE devices(4.0). If you want to search for classic Bluetooth devices, you'll need to use the IOBluetoothDeviceInquiry class.
Matt
On Jan 29, 2013, at 2:56 PM, Marco Bambini <email@hidden> wrote:
> Hello,
> I am probably missing something but I really don't understand why a simple BT code does not work.
> I created a Cocoa app on MacOS X 10.8 and I linked the IOBluetooth framework.
>
> My very simple test class (which is CBCentralManagerDelegate and CBPeripheralDelegate) do:
>
> CBCentralManager *centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
> [centralManager scanForPeripheralsWithServices:nil options:nil];
>
> I was expecting to receive notifications about new devices in the eventDiscoveredPeripheral delegate method (and even in others methods) and I tried with a lot of different BT devices (even iPhone 5 with iOS 6.1) but nothing happens… even if devices are correctly listed using the Bluetooth preference pane utility.
>
> Why I do not receive anything in my delegates methods?
> I am sure I am missing something about BT.
> Please help.
> --
> Marco Bambini
> http://www.sqlabs.com
> http://twitter.com/sqlabs
> http://instagram.com/sqlabs
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden