This example is much spoken of but turns out to be a bugger to find. It is not kept with the rest of Nordic’s example software but on github at https://github.com/NordicSemiconductor/nrf51-ble-app-lbs .
It’s quite involved to get this app compiled, and it is described in “Creating Bluetooth Low Energy Applications Using nRF51822 aka nAN-36.
The software is tested using the Master Control Panel. The MCP talks to a dongle that has to be pre-loaded with an emulator called the MEFW (Master Emulator Firmware?). The firmware is loaded using the MCP itself. All of these components are obtained here.