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: GapAdvertisingData.cpp
- Revision:
- 40:d405c9b1419d
- Parent:
- 34:da2ea8cd6216
- Child:
- 47:33f605e109a2
--- a/GapAdvertisingData.cpp Thu May 22 14:51:06 2014 +0100
+++ b/GapAdvertisingData.cpp Thu May 22 15:02:40 2014 +0100
@@ -213,7 +213,7 @@
\returns A pointer to the payload
*/
/**************************************************************************/
-uint8_t *GapAdvertisingData::getPayload(void)
+const uint8_t *GapAdvertisingData::getPayload(void) const
{
return (_payloadLen > 0) ? _payload : NULL;
}
@@ -225,7 +225,7 @@
\returns The payload length in bytes
*/
/**************************************************************************/
-uint8_t GapAdvertisingData::getPayloadLen(void)
+uint8_t GapAdvertisingData::getPayloadLen(void) const
{
return _payloadLen;
}
@@ -237,7 +237,7 @@
\returns The 16-bit appearance value
*/
/**************************************************************************/
-uint16_t GapAdvertisingData::getAppearance(void)
+uint16_t GapAdvertisingData::getAppearance(void) const
{
return (uint16_t)_appearance;
}
