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
Revision 410:af8f2d1b67b6, committed 2015-06-08
- Comitter:
- rgrover1
- Date:
- Mon Jun 08 10:41:17 2015 +0100
- Parent:
- 409:37a4202649dd
- Child:
- 411:cf2cce37ad73
- Commit message:
- Synchronized with git rev b29089e8
Author: Rohit Grover
minor improvements to the new APIs for getAdvParams/Data().
Changed in this revision
| public/BLEDevice.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/BLEDevice.h Mon Jun 08 10:41:17 2015 +0100
+++ b/public/BLEDevice.h Mon Jun 08 10:41:17 2015 +0100
@@ -139,7 +139,7 @@
* @return Read back advertising parameters. Useful for storing and
* restoring parameters rapidly.
*/
- GapAdvertisingParams getAdvertisingParams(void);
+ const GapAdvertisingParams &getAdvertisingParams(void) const;
/**
* This API is typically used as an internal helper to udpate the transport
@@ -160,7 +160,7 @@
* @return Read back advertising data. Useful for storing and
* restoring payload.
*/
- GapAdvertisingData getAdvertisingData(void);
+ const GapAdvertisingData &getAdvertisingData(void) const;
/**
* Reset any advertising payload prepared from prior calls to
@@ -696,8 +696,8 @@
advParams = newAdvParams;
}
-inline GapAdvertisingParams
-BLEDevice::getAdvertisingParams(void)
+inline const GapAdvertisingParams &
+BLEDevice::getAdvertisingParams(void) const
{
return advParams;
}
@@ -769,8 +769,8 @@
return setAdvertisingPayload();
}
-inline GapAdvertisingData
-BLEDevice::getAdvertisingData(void) {
+inline const GapAdvertisingData &
+BLEDevice::getAdvertisingData(void) const {
return advPayload;
}
