when to start a ble service thread and when can i stop it

hello Nordic

i am working with nrf52840, nrf52832 with ncs 2.3.0

working with softdevice controler.

i wish to avoid thread running on my system when not required to do so. an example of that is a ble service thread i have which, obviously relevant only when BLE connection is on.

however, i am not sure if initiating it at "connect" callback and flag to end it gracfuly at disconnect is safe enough.

any thoughts on that matter will be most welcome

hope to read you soon

best regards

Ziv

Parents Reply Children
Related