nRF51 SDK - S120 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Link Status Events

Link Status Events. More...


#define DM_EVT_CONNECTION   0x11
#define DM_EVT_SECURITY_SETUP   0x13
#define DM_EVT_LINK_SECURED   0x15

Detailed Description

Link Status Events.

This category of events notify the application of the link status. Event result associated with the event is provided along with the event in the callback to provide more details of whether a procedure succeeded or failed and assist the application in decision making of how to proceed. For example if a DM_DEVICE_CONNECT_IND is indicated with NRF_SUCCESS result, the application may want to proceed with discovering and association with service of the peer. However, if indicated with a failure result, the application may want to take an alternate action such as reattempting to connect or go into a sleep mode.

Macro Definition Documentation

#define DM_EVT_CONNECTION   0x11

Indicates that link with the peer is established.


Indicates that link with peer is torn down.

#define DM_EVT_LINK_SECURED   0x15

Indicates that link with the peer is secured. For bonded devices, subsequent reconnections with bonded peer will result only in this event when the link is secured and setup procedures will not occur unless the bonding information is either lost or deleted on either or both sides.

#define DM_EVT_SECURITY_SETUP   0x13

Security procedure for link started indication


Security procedure for link completion indication.


Indicates that the security on the link was re-established.