Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 130:ec760bb91020
- Parent:
- 128:b7fc7925b5da
- Child:
- 132:5f44d6c28625
diff -r 7cf48219e771 -r ec760bb91020 btle/btle.cpp --- 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; }