![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
1
Fork of nRF51822 by
Diff: nRF51822n.h
- Revision:
- 151:e093294d98fb
- Parent:
- 134:df7e7964a9c3
- Child:
- 328:f3aa0fddaa79
--- a/nRF51822n.h Fri May 08 15:33:58 2015 +0100 +++ b/nRF51822n.h Fri May 08 15:33:58 2015 +0100 @@ -46,7 +46,12 @@ virtual ble_error_t init(void); virtual ble_error_t shutdown(void); virtual ble_error_t reset(void); - virtual ble_error_t initializeSecurity(void) {return btle_initializeSecurity();} + virtual ble_error_t initializeSecurity(bool enableBonding = true, + bool requireMITM = true, + Gap::SecurityIOCapabilities_t iocaps = Gap::IO_CAPS_NONE, + const Gap::Passkey_t passkey = NULL) { + return btle_initializeSecurity(enableBonding, requireMITM, iocaps, passkey); + } virtual void waitForEvent(void); };