NRF51822 Firmware for Background Data Recording