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

ble_app_lbs error

I have an issue with the ble_app_lbs. I can compile it OK, but when I run it it gets as far as calling sd_ble_gap_device_name_set(), which returns error 0x3001.

Can someone tell me why this might be?

Parents
  • If you are using SD7, there is a code sequence to enable the SD.

        // Enable BLE stack
        ble_enable_params_t ble_enable_params;
        memset(&ble_enable_params, 0, sizeof(ble_enable_params));
        ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
        err_code = sd_ble_enable(&ble_enable_params);
        APP_ERROR_CHECK(err_code);
    

    That is what I found by comparing the init stack with new hrs example. It solves the problem of that error but I could't get the custom service working yet. There may be other differences between SD6 & SD7 that need to change.

  • When you download the individual releases, there is always a document called "Migration Document" that follows the release bundle. Everything you need to know for migrating between any version should be there. Unfortunately, not every SDK example is able to keep up, but the migration doc should outline the necessary changes if you need an older example to work.

Reply Children
No Data
Related