Edit AdvertisingDataBuilder.h

Edit file, mostly to fix typos and standardize hyphen use.
pull/8738/head
Amanda Butler 2018-11-26 18:12:56 -06:00 committed by GitHub
parent 451f9aad12
commit 7df90ba3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -41,12 +41,12 @@ namespace ble {
/** /**
* Build advertising data. * Build advertising data.
* *
* The builder accept an array of bytes in input and returns the result of the * The builder accepts an array of bytes in input and returns the result of the
* construction with getAdvertisingData(). * construction with getAdvertisingData().
*/ */
class AdvertisingDataBuilder { class AdvertisingDataBuilder {
public: public:
/** Advertising data needs a user provided buffer to store the data. /** Advertising data needs a user-provided buffer to store the data.
* *
* @param buffer Buffer used to store the data. * @param buffer Buffer used to store the data.
* @note Use Gap::getMaxAdvertisingDataLength() to find out how much can be accepted. * @note Use Gap::getMaxAdvertisingDataLength() to find out how much can be accepted.
@ -69,7 +69,7 @@ public:
mbed::Span<const uint8_t> getAdvertisingData() const; mbed::Span<const uint8_t> getAdvertisingData() const;
/** /**
* Add a new field into the payload. Will return an error if type is already present. * Add a new field into the payload. Returns an error if type is already present.
* *
* @note Data size for individual types cannot exceed 255 bytes. * @note Data size for individual types cannot exceed 255 bytes.
* *
@ -232,7 +232,7 @@ public:
ble_error_t setName(const char *name, bool complete = true); ble_error_t setName(const char *name, bool complete = true);
/** /**
* Add manufacturer specific data to the advertising payload. * Add manufacturer-specific data to the advertising payload.
* *
* @note Data size for individual types cannot exceed 255 bytes. * @note Data size for individual types cannot exceed 255 bytes.
* *
@ -286,7 +286,7 @@ public:
ble_error_t setServiceData(UUID service, mbed::Span<const uint8_t> data); ble_error_t setServiceData(UUID service, mbed::Span<const uint8_t> data);
/** /**
* Add local service IDs to the advertising payload. If they data can't fit * Add local service IDs to the advertising payload. If the data can't fit,
* no modification will take place. * no modification will take place.
* *
* @note Data size for individual types cannot exceed 255 bytes. * @note Data size for individual types cannot exceed 255 bytes.