User Activity

In my ble application(BLE peripheral) code i need to enter standby mode(BLE can be disabled in stand by mode), after 20 sec by RTC wake up i need to enable the BLE again, start advertising and do some ADC reading. Is there any particular example code...