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.
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.