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: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/bluetooth/MicroBitBLEManager.cpp
- Revision:
- 26:493daf8966fd
- Parent:
- 24:3373f1fb0353
- Child:
- 29:62f8b007debf
diff -r 27299423d813 -r 493daf8966fd source/bluetooth/MicroBitBLEManager.cpp
--- a/source/bluetooth/MicroBitBLEManager.cpp Wed Jul 13 12:17:58 2016 +0100
+++ b/source/bluetooth/MicroBitBLEManager.cpp Wed Jul 13 12:18:03 2016 +0100
@@ -110,7 +110,7 @@
static void bleDisconnectionCallback(const Gap::DisconnectionCallbackParams_t *reason)
{
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_EVT_DISCONNECTED);
-
+
storeSystemAttributes(reason->handle);
if (manager)
@@ -120,7 +120,7 @@
/**
* Callback when a BLE connection is established.
*/
-static void bleConnectionCallback(const Gap::ConnectionCallbackParams_t *params)
+static void bleConnectionCallback(const Gap::ConnectionCallbackParams_t*)
{
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_EVT_CONNECTED);
}
@@ -277,7 +277,7 @@
// automatically restart advertising after a device disconnects.
ble->gap().onDisconnection(bleDisconnectionCallback);
ble->gattServer().onSysAttrMissing(bleSysAttrMissingCallback);
-
+
// generate an event when a Bluetooth connection is established
ble->gap().onConnection(bleConnectionCallback);
