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.
Fork of BLE_API by
Diff: hw/BLEDevice.h
- Revision:
- 104:6ef5abef5714
- Parent:
- 103:8890715aaf55
- Child:
- 105:f29ab9f74d7e
--- a/hw/BLEDevice.h Wed Jul 09 09:08:53 2014 +0100
+++ b/hw/BLEDevice.h Thu Jul 10 12:12:06 2014 +0100
@@ -208,12 +208,13 @@
ble_error_t disconnect(void);
/* APIs to set GAP callbacks. */
- void onTimeout(Gap::EventCallback_t timeoutCallback);
- void onConnection(Gap::EventCallback_t connectionCallback);
+ void onTimeout(Gap::EventCallback_t timeoutCallback);
+
+ void onConnection(Gap::HandleSpecificEventCallback_t connectionCallback);
/**
* Used to setup a callback for GAP disconnection.
*/
- void onDisconnection(Gap::EventCallback_t disconnectionCallback);
+ void onDisconnection(Gap::HandleSpecificEventCallback_t disconnectionCallback);
/**
* Setup a callback for the GATT event DATA_SENT.
@@ -417,13 +418,13 @@
}
inline void
-BLEDevice::onConnection(Gap::EventCallback_t connectionCallback)
+BLEDevice::onConnection(Gap::HandleSpecificEventCallback_t connectionCallback)
{
transport->getGap().setOnConnection(connectionCallback);
}
inline void
-BLEDevice::onDisconnection(Gap::EventCallback_t disconnectionCallback)
+BLEDevice::onDisconnection(Gap::HandleSpecificEventCallback_t disconnectionCallback)
{
transport->getGap().setOnDisconnection(disconnectionCallback);
}
