nRF51 SDK
|
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 link status. Event result associated with the event provided along with the event in the callback 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 alternate action getting into connectable mode again or getting into a sleep mode etc.
#define DM_EVT_CONNECTION 0x11 |
Indicates link with peer is established.
#define DM_EVT_DISCONNECTION 0x12 |
Indicates link with peer is torn down.
#define DM_EVT_LINK_SECURED 0x15 |
Indicates link with 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 security on the link was refreshed/ re-established.