adding const to the "data" member of GapAdvertisingData::addData()

This commit is contained in:
Rohit Grover 2014-05-23 17:05:53 +01:00
parent ac72488c70
commit 05a4e99f5d
2 changed files with 4 additions and 4 deletions

View file

@ -71,9 +71,9 @@ GapAdvertisingData::~GapAdvertisingData(void)
\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.) */

View file

@ -350,7 +350,7 @@ public:
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);