I'm developing an application for a device which needs to support both DFU and some method of restricting connections to a single central (ie: bonding). This is a challenge because a central which has bonded to a peripheral assumes that the peripheral's services will never change but the Bootloader/DFU architecture supplied by Nordic requires a peripheral to become a new application with a very different set of services. Consequently, a central won't connect to a bonded peripheral that's restarted in in DFU mode and a frustrating time is had by all.
The recommended solution (last post here) and Ole's post here is to add the DFU service to an application. Is there any nRF51822 example for how to do this?