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

Should we decide if a notification should be sent or is it the role of the SoftDevice ?

A characteristic can be read/write/notify.

I have seen cases in Nordic's examples where there is an internal boolean "is_notify", and when the user sets it from the central device, you record that, and depending on this you send, or not, a notification when needed. (see the uart example in ble_nus.c and variable is_notification_enabled)

In other examples, it seems that the SoftDevice does this for us. (see ble_hrs.c for instance, no such variable)

What is the correct use case? Thanks P.S Im using sdk 8.1

Related