nRF51 SDK - S110 SoftDevice
|
The two examples included here (Advertisement Beacon and Advertisement Beacon) illustrate how to use the Radio Timeslot API of the S110 V7.0.0.
The source code and project file can be found in the <InstallFolder>\Nordic\nrf51822\Board\nrf6310\s110\experimental\ble_app_multiactivity_beacon
folder.
This folder contains an advertiser module which is shown in a heart rate sensor example and which advertise beacon data while in a connection.
The advertiser beacon module illustrates using periodic timeslots on the radio when the SoftDevice is running. The example using the advertiser beacon is based on Heart Rate service example and starts advertising as a beacon when in a connection.
The scanner beacon module illustrates using as much as possible of available radio time when the SoftDevice is running. The example using the advertiser beacon is based on Heart Rate service example and scans for advertising beacon at all times. If a beacon is found, indicated by the call to beacon_evt_handler, and if the major, minor and rssi values matches the expected one, lit the LED 2 (which is cleared on a disconnect event).