nRF51 SDK - S110 SoftDevice
|
Link Status Events. More...
Macros | |
#define | DM_EVT_CONNECTION 0x11 |
#define | DM_EVT_DISCONNECTION 0x12 |
#define | DM_EVT_SECURITY_SETUP 0x13 |
#define | DM_EVT_SECURITY_SETUP_COMPLETE 0x14 |
#define | DM_EVT_LINK_SECURED 0x15 |
#define | DM_EVT_SECURITY_SETUP_REFRESH 0x16 |
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.
#define DM_EVT_CONNECTION 0x11 |
Indicates that link with the peer is established.
#define DM_EVT_DISCONNECTION 0x12 |
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
#define DM_EVT_SECURITY_SETUP_COMPLETE 0x14 |
Security procedure for link completion indication.
#define DM_EVT_SECURITY_SETUP_REFRESH 0x16 |
Indicates that the security on the link was re-established.