Hello, regular Bluetooth and I think that the issue is that I was using the wrong class… as Matt suggested I should probably use the IOBluetoothDeviceInquiry class -- Marco Bambini http://www.sqlabs.com http://twitter.com/sqlabs http://instagram.com/sqlabs On Jan 30, 2013, at 12:24 AM, Andy Fuchs <andy@foxwerk.de> wrote:
Hi Marco,
are you talking about 'regular' Bluetooth or BTLE?
Andy
Am 29.01.2013 um 23:56 schrieb Marco Bambini <marco@sqlabs.com>:
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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/andy%40andy-fuchs.com
This email sent to andy@andy-fuchs.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com