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:
- 105:f29ab9f74d7e
- Parent:
- 104:6ef5abef5714
diff -r 6ef5abef5714 -r f29ab9f74d7e hw/BLEDevice.h
--- a/hw/BLEDevice.h Thu Jul 10 12:12:06 2014 +0100
+++ b/hw/BLEDevice.h Fri Jul 11 14:39:17 2014 +0100
@@ -250,6 +250,11 @@
*/
void waitForEvent(void);
+ ble_error_t getPreferredConnectionParams(Gap::ConnectionParams_t *params);
+ ble_error_t setPreferredConnectionParams(const Gap::ConnectionParams_t *params);
+ ble_error_t updateConnectionParams(Gap::Handle_t handle, const Gap::ConnectionParams_t *params);
+ // ble_version_t getVersion(void);
+
public:
BLEDevice() : transport(createBLEDeviceInstance()), advParams(), advPayload(), scanResponse(), needToSetAdvPayload(true) {
advPayload.clear();
@@ -488,6 +493,23 @@
transport->waitForEvent();
}
+inline ble_error_t
+BLEDevice::getPreferredConnectionParams(Gap::ConnectionParams_t *params)
+{
+ return transport->getGap().getPreferredConnectionParams(params);
+}
+
+inline ble_error_t
+BLEDevice::setPreferredConnectionParams(const Gap::ConnectionParams_t *params)
+{
+ return transport->getGap().setPreferredConnectionParams(params);
+}
+
+inline ble_error_t
+BLEDevice::updateConnectionParams(Gap::Handle_t handle, const Gap::ConnectionParams_t *params) {
+ return transport->getGap().updateConnectionParams(handle, params);
+}
+
/*
* ALL OF THE FOLLOWING METHODS ARE DEPRECATED
*/
