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 47:33f605e109a2, committed 2014-05-23
- Comitter:
- Rohit Grover
- Date:
- Fri May 23 17:05:53 2014 +0100
- Parent:
- 46:33d87f468a0d
- Child:
- 48:ec0c28e62abf
- Commit message:
- adding const to the "data" member of GapAdvertisingData::addData()
Changed in this revision
| GapAdvertisingData.cpp | Show annotated file Show diff for this revision Revisions of this file |
| GapAdvertisingData.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GapAdvertisingData.cpp Fri May 23 15:21:47 2014 +0100
+++ b/GapAdvertisingData.cpp Fri May 23 17:05:53 2014 +0100
@@ -71,9 +71,9 @@
\endcode
*/
/**************************************************************************/
-ble_error_t GapAdvertisingData::addData(DataType advDataType,
- uint8_t *payload,
- uint8_t len)
+ble_error_t GapAdvertisingData::addData(DataType advDataType,
+ const uint8_t *payload,
+ uint8_t len)
{
/* ToDo: Check if an AD type already exists and if the existing */
/* value is exclusive or not (flags, etc.) */
--- a/GapAdvertisingData.h Fri May 23 15:21:47 2014 +0100
+++ b/GapAdvertisingData.h Fri May 23 17:05:53 2014 +0100
@@ -350,7 +350,7 @@
GapAdvertisingData(void);
virtual ~GapAdvertisingData(void);
- ble_error_t addData(DataType, uint8_t *, uint8_t);
+ ble_error_t addData(DataType, const uint8_t *, uint8_t);
ble_error_t addAppearance(Appearance appearance = GENERIC_TAG);
ble_error_t addFlags(Flags flag = LE_GENERAL_DISCOVERABLE);
ble_error_t addTxPower(int8_t txPower);
