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: nRF51822n.h
- Revision:
- 151:e093294d98fb
- Parent:
- 134:df7e7964a9c3
diff -r 44c40836c82f -r e093294d98fb nRF51822n.h --- 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); };