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

Deinit fully BLE

Hi i use a soft with DFU and Beacon. I will use the beacon and when i press on a button i can update the software with DFU. DFU and BEACON works independently but when i will use the 2 together the soft stop or restart.

for deinit the BLE i have try : sd_ble_gap_adv_stop(); softdevice_handler_sd_disable();

but the result as the same. Do you have a method for completely deinit the BLE BEACON ?

Parents Reply
  • i am not sure why your main starts directly after DFU? While in DFU, your device is in bootloader mode and after your firmware upload is complete there should be a reset so that your device comes our of bootloader mode and your application program starts. When your application starts calling ble_stack_init function will be first one after reset. So I do not understand how your DFU and application are able to run without a reset in between? have you modified the DFU code?

Children
No Data
Related