Note that there are some explanatory texts on larger screens.

plurals
  1. POlocationManager:didRangeBeacons method not detecting BLE Device
    primarykey
    data
    text
    <p>I'm using a Nordic BLE nRF8001 development kit for testing CoreBluetooth. Using CBCentralManager's methods(e.g. didDiscoverPeripheral(), didConnectPeripheral(), etc.) <strong>my iPhone 5 is able to detect the Nordic device's advertisements and connect to it just fine</strong>. However, I'm not receiving any response from the new locationManager ranging or regionMonitoring methods. Below I'll explain my setup:</p> <p>1.) First I retrieved my NSUUID from my Nordic device in the didDiscoverPeripheral() delegate method using the passed in peripheral device (my Nordic device). I created a custom service for my Nordic device among other things, so assume this peripheral is the Nordic device. To retrieve the NSUUID I used: </p> <pre><code> NSUUID *uuid = [peripheral identifier]; NSString *uuidString = [uuid UUIDString]; //uuidString = 9A8D4C73-152D-BBDA-E4C2-9CE952654645 </code></pre> <p>2.) Next I create a beacon region for my Nordic device and create a CLLocationManager:</p> <pre><code> 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; </code></pre> <p>3.) Now I start monitoring for the beacon region</p> <pre><code>[self.locationManagerBeacon startRangingBeaconsInRegion:self.beaconRegion]; </code></pre> <p>4.) <strong>Problem</strong>: locationManager:didRangeBeacons:inRegion gets invoked, but the beacons region is always empty.</p> <p>Question: Does the Nordic BLE device need to be configured in a certain manner such that the new locationManager beacon methods will detect it (e.g. BLE advertisement frequency, power level, etc.)? If so, could someone point me to the documentation. </p> <p>Appreciate the help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload