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?
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?
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.
Finally, I got it advertised & connect with iOS. Still crashes later on. Probably other init code or intermediary states required by SD7. I wish Nordic could post a document for migrating from SD6 to SD7.
0x3001 is actually "BLE_ERROR_NOT_ENABLED", which is raised due to an extra step needed in S110 7.0.
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.
Could you tell me where that documentation is ? I downloaded the sdk in zip form since I work in OSX. I can't find it in the document folder of the SDK.