Nordic stack and drivers for the mbed BLE API
Fork of nRF51822 by
Revision 130:ec760bb91020, committed 2015-05-08
- Comitter:
- rgrover1
- Date:
- Fri May 08 15:33:55 2015 +0100
- Parent:
- 129:7cf48219e771
- Child:
- 131:b21411170d00
- Commit message:
- Synchronized with git rev 75e2f969
Author: Rohit Grover
handle DM related events.
Changed in this revision
btle/btle.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/btle/btle.cpp Fri May 08 15:33:55 2015 +0100 +++ b/btle/btle.cpp Fri May 08 15:33:55 2015 +0100 @@ -178,22 +178,22 @@ } dm_event_t; #endif - // switch (p_event->event_id) { - // case DM_EVT_SECURITY_SETUP: /* started */ - // nRF51Gap::getInstance().processConnectionEvent(handle, - // static_cast<Gap::addr_type_t>(peer->addr_type), peer->addr, - // static_cast<Gap::addr_type_t>(own->addr_type), own->addr, - // params); - // break; - // case DM_EVT_SECURITY_SETUP_COMPLETE: - // break; - // case DM_EVT_LINK_SECURED: - // break; - // case DM_EVT_DEVICE_CONTEXT_STORED: - // break; - // default: - // break; - // } + switch (p_event->event_id) { + case DM_EVT_SECURITY_SETUP: /* started */ + nRF51Gap::getInstance().processSecuritySetupStartedEvent(p_event->event_param.p_gap_param->conn_handle); + break; + case DM_EVT_SECURITY_SETUP_COMPLETE: + nRF51Gap::getInstance().processSecuritySetupCompletedEvent(p_event->event_param.p_gap_param->conn_handle); + break; + case DM_EVT_LINK_SECURED: + nRF51Gap::getInstance().processLinkSecuredEvent(p_event->event_param.p_gap_param->conn_handle); + break; + case DM_EVT_DEVICE_CONTEXT_STORED: + nRF51Gap::getInstance().processSecurityContextStoredEvent(p_event->event_param.p_gap_param->conn_handle); + break; + default: + break; + } return NRF_SUCCESS; }