ios-bluetooth

iOS how to discover bluetooth headset and its events

白昼怎懂夜的黑 提交于 2019-11-28 11:45:13
问题 I am trying to discover "Bluetooth Headset" and get its events. I read the "CoreBluetooth" documentation and implemented sample code as below. It does not fire the delegate method ' didDiscoverPeripheral '. Is there any solution for this? Code: CBCentralManager *myCentralManager; [myCentralManager scanForPeripheralsWithServices:nil options:nil]; -(void)centralManagerDidUpdateState:(CBCentralManager *)central{ //following line prints CBCentralManagerStatePoweredOn NSLog(@"state:%@", [self

Get the list of classic bluetooth connected devices (no BLE) [EAAccessoryManager]

我是研究僧i 提交于 2019-11-28 01:02:24
问题 I need to do an app which will be able to tell if I am currently connected to a classic Bluetooth device or not (actually, it will be a Bluetooth car device). My first step is to tell what are the current connected classic Bluetooth devices. I cannot use CoreBluetooth because it's only for LE. I try to use the External Accessory framework. Here is the code (a button starts the method): - (IBAction)startMethodGetConnected:(id)sender { NSLog(@"button taped"); // Get the number of accessories

How get the list of paired bluetooth devices in swift?

不羁的心 提交于 2019-11-27 22:22:02
问题 I need to get the list of paired bluetooth devices(iOS Devices) as same as the list in 'Bluetooth' section in iOS settings as shown in below picture. Is it possible? Have you seen any apps doing this type of functionality? I have tried the following: link1, link2, link3, link4, link5, link6 But nothing helped me clearly to get the exact list. I hope there should be a way to achieve this. Please help me by sharing your experience. Thank you. 回答1: It's not possible to retrieve list of paired