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

"Notify" permission confirmation method

SDK: 15.3.0
Device: EYSHJNZWZ (nRF52832)

I am working in a "peripheral" configuration.
It has a characteristic that contains "Notify" as a property.
Is there a way to check if "Notify" is allowed / disallowed?
I want to check when not connected to "Central".

  • Is there a way to check if "Notify" is allowed / disallowed?
    I want to check when not connected to "Central".

    If the characteristic support notification, the central/client can enable or disable if it wants to receive notification or not in the CCCD on the peripheral/server. The application can check if notification is enabled or not in the CCCD. Take a look at how this is done in e.g. ble_nus.c on_connect() function.

    If the central/client is not connected, you cannot send notifications.

Related