Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: common/BLEDeviceInstanceBase.h
- Revision:
- 357:d4bb5d2b837a
- Parent:
- 347:20be4234c6fe
--- a/common/BLEDeviceInstanceBase.h Fri May 08 15:35:46 2015 +0100 +++ b/common/BLEDeviceInstanceBase.h Fri May 08 15:35:47 2015 +0100 @@ -30,7 +30,10 @@ virtual ble_error_t init(void) = 0; virtual ble_error_t shutdown(void) = 0; virtual ble_error_t reset(void) = 0; - virtual ble_error_t initializeSecurity(void) = 0; + 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) = 0; virtual ble_error_t setTxPower(int8_t txPower) = 0; virtual void getPermittedTxPowerValues(const int8_t **, size_t *) = 0; virtual void waitForEvent(void) = 0;