O'Reilly logo

Learning iBeacon by Craig Gilchrist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Obtaining broadcast values from CLBeaconRegion

In order to use the startAdvertising method of the CBPeripheralManage class, we need to know what we're broadcasting. We do this by calling the peripheralDataWithMeasuredPower: method of CLBeaconRegion. The resulting NSMutableDictionary class can be used with the startAdvertising method of the CBPeripheralManage class.

Measured power (TXPower)

Back in Chapter 1, Welcome to iBeacon, we discussed RSSI and measured power to adjust the power of the transmission so that the distance could be better understood. We'll put this principle into effect during the tutorial by using the measured power of -63 dBm, which should give the correct RSSI value at distance of 1 meter. This might not be completely accurate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required