C Implementation of Bluetooth LE peripheral.