Is there a remove/delete API against sd_ble_gatts_service_add ?
If not, what is alternative to remove service.
Thanks,
Rahul
Is there a remove/delete API against sd_ble_gatts_service_add ?
If not, what is alternative to remove service.
Thanks,
Rahul
Hello,
Unfortunately, there is not. If you want to remove a service, you need to disable the softdevice, enable it again, and not add the service that you wanted to remove.
Best regards,
Edvin
Hello,
Unfortunately, there is not. If you want to remove a service, you need to disable the softdevice, enable it again, and not add the service that you wanted to remove.
Best regards,
Edvin
Is this something you are suggesting?
softdevice_handler_sd_disable();
ble_stack_init();
services_init();
Yes. Except that in services_init() you would exclude the service that you want to remove.