This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE blinky peripheral, can't remove services, and not sure how to find the issue.

Hi guys, i'm playing a bit with the ble blinky peripheral example, as a precursor to a bigger project. 

What im trying to do is disable the services completely, meaning that that i won't be able to write and read the gpios., but still connect or see the advertised data

My initial approach was just disabeling the service_init()

int main(void)
{
    // Initialize.
    log_init();
    leds_init();
    timers_init();
    buttons_init();
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    //services_init();
    advertising_init();
    conn_params_init();

    // Start execution.
    NRF_LOG_INFO("Blinky example started.");
    advertising_start();

    // Enter main loop.
    for (;;)
    {
        idle_state_handle();
    }
}

But nothing is ever as simple as it seems.

when debugging this happens:

I also can't figure out how to identify the issue through debugging, since all i get is the line above, no output as far as i can tell

Related