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.
Dependencies: nrf51-sdk-bluetooth-mdw
Fork of nRF51822 by
Diff: btle/btle.cpp
- Revision:
- 124:664d4257a9f8
- Parent:
- 123:e19f9f7874f9
- Child:
- 125:35e4f65364bc
--- a/btle/btle.cpp Fri May 08 15:33:54 2015 +0100
+++ b/btle/btle.cpp Fri May 08 15:33:54 2015 +0100
@@ -33,6 +33,7 @@
#include "GapEvents.h"
#include "nRF51Gap.h"
#include "nRF51GattServer.h"
+#include "device_manager.h"
#include "ble_hci.h"
@@ -91,6 +92,11 @@
pstorage_init();
+ dm_init_param_t dm_init_param = {
+ .clear_persistent_data = false /* Set to true in case the module should clear all persistent data. */
+ };
+ dm_init(&dm_init_param);
+
btle_gap_init();
return ERROR_NONE;
