I am using the Nordic BLE nRF8001 development kit to test CoreBluetooth. Using the CBCentralManager methods (e.g. didDiscoverPeripheral (), didConnectPeripheral (), etc.) my iPhone 5 is able to detect Nordic advertisements and connect to it just fine . However, I am not getting any response from the new locationManager or regionMonitoring methods. Below I will explain my setup:
1.) First, I received my NSUUID from my Nordic device in the didDiscoverPeripheral () delegation method using the transmitted on the peripheral device (my northern device). By the way, I created a special service for my Scandinavian device, so suppose this peripheral device is a Scandinavian device. To get the NSUUID, I used:
NSUUID *uuid = [peripheral identifier]; NSString *uuidString = [uuid UUIDString];
2.) Then I create a beacon area for my northern device and create a CLLocationManager:
self.locationManagerBeacon = [[CLLocationManager alloc] init]; [self.locationManagerBeacon setDelegate:self]; NSUUID *myUUID = [[NSUUID alloc] initWithUUIDString:@"9A8D4C73-152D-BBDA-E4C2-9CE952654645"]; self.beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:myUUID identifier:@"nordicRegion"]; self.beaconRegion.notifyEntryStateOnDisplay = YES;
3.) Now I start monitoring the area of the lighthouse
[self.locationManagerBeacon startRangingBeaconsInRegion:self.beaconRegion]
4.) Problem : locationManager: didRangeBeacons: inRegion is called, but the beacon area is always empty.
Question: Do I need to configure the Nordic BLE device in a certain way so that new locationManager beacon methods can detect it (for example, BLE ad frequency, power level, etc.)? If so, can someone point me to the documentation.
Appreciate the help!
ios iphone bluetooth ibeacon
Caseyg
source share