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: ble/Gap.h
- Revision:
- 765:4cd91998cd48
- Parent:
- 764:1e560f0d45e1
- Child:
- 766:03f1a26f132f
diff -r 1e560f0d45e1 -r 4cd91998cd48 ble/Gap.h --- a/ble/Gap.h Fri Aug 07 15:53:50 2015 +0100 +++ b/ble/Gap.h Fri Aug 07 15:53:50 2015 +0100 @@ -586,12 +586,18 @@ } /** - * Update the advertising payload filed which has the same adv type as the input - * parameter. Total length of the new data must be the same as the old one. + * Update a particular ADV field in the advertising payload (based on + * matching type and length). Note: the length of the new data must be the + * same as the old one. * - * @param type The type which describes the variable length data. - * @param data data bytes. - * @param len length of data. + * @param[in] type The ADV type field which describes the variable length data. + * @param[in] data data bytes. + * @param[in] len length of data. + * + * @note: If advertisements are enabled, then the update will take effect immediately. + * + * @return BLE_ERROR_NONE if the advertisement payload was updated based on + * a <type, len> match; else an appropriate error. */ ble_error_t updateAdvertisingPayload(GapAdvertisingData::DataType type, const uint8_t *data, uint8_t len) { if (type == GapAdvertisingData::COMPLETE_LOCAL_NAME) {