Nordic stack and drivers for the mbed BLE API

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri May 08 15:33:58 2015 +0100
Parent:
150:44c40836c82f
Child:
152:0e74b7590ab2
Commit message:
Synchronized with git rev f6aeede5
Author: Rohit Grover
update for BLEDeviceInstanceBase::initializeSecurity()

Changed in this revision

nRF51822n.h Show annotated file Show diff for this revision Revisions of this file
--- 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);
 };