Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HIDS, ANCS and HRS. How to stop heartrate measurements when app closed?

Hi

I am use hids, ancs and hrs services together with bonding. Phone should hold the connection with device. I am enable heart rate sensor when notification is enabled, but the notification state will not change to disabled if app is closed. I can't measure the heartrate continuously because of battery.

1). How to solve this conflict good?

2). Is there some methods to disable notifications when app is closed?

3). Is it possible to do not save cccd in fds using peer manager or reset cccd when disconnect?

Thanks

Related