test
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 130:ec760bb91020
- Parent:
- 128:b7fc7925b5da
- Child:
- 132:5f44d6c28625
--- 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; }