iOS how to discover bluetooth headset and its events
问题 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