adding const to the "data" member of GapAdvertisingData::addData()
This commit is contained in:
parent
ac72488c70
commit
05a4e99f5d
2 changed files with 4 additions and 4 deletions
|
@ -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.) */
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue