central didDiscoverPeripheral: method not invoking

86 Views Asked by At

My code:centralManagerDidUpdateState

NSDictionary *opts=[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO],CBCentralManagerScanOptionAllowDuplicatesKey, nil];
[mgr scanForPeripheralsWithServices:nil options:opts];

Then central didDiscoverPeripheral: method not invoking

 [self.peripherals addObject:peripheral];
0

There are 0 best solutions below