x
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/bluetooth/MicroBitBLEManager.cpp
- Revision:
- 29:62f8b007debf
- Parent:
- 26:493daf8966fd
- Child:
- 30:db87179335d5
--- a/source/bluetooth/MicroBitBLEManager.cpp Wed Jul 13 12:18:06 2016 +0100 +++ b/source/bluetooth/MicroBitBLEManager.cpp Wed Jul 13 12:18:07 2016 +0100 @@ -330,9 +330,19 @@ setTransmitPower(MICROBIT_BLE_DEFAULT_TX_POWER); // Bring up core BLE services. +#if CONFIG_ENABLED(MICROBIT_BLE_DFU_SERVICE) new MicroBitDFUService(*ble); +#endif + +#if CONFIG_ENABLED(MICROBIT_BLE_DEVICE_INFORMATION_SERVICE) DeviceInformationService ble_device_information_service (*ble, MICROBIT_BLE_MANUFACTURER, MICROBIT_BLE_MODEL, serialNumber.toCharArray(), MICROBIT_BLE_HARDWARE_VERSION, MICROBIT_BLE_FIRMWARE_VERSION, MICROBIT_BLE_SOFTWARE_VERSION); +#endif + +#if CONFIG_ENABLED(MICROBIT_BLE_EVENT_SERVICE) new MicroBitEventService(*ble, messageBus); +#else + (void)messageBus; +#endif // Configure for high speed mode where possible.