ble/Gap.h
ble_error_t accumulateAdvertisingPayload(uint8_t flags) {
        GapAdvertisingData advPayloadCopy = _advPayload;
        ble_error_t rc;
        if ((rc = advPayloadCopy.addFlags(flags)) != BLE_ERROR_NONE) {
            return rc;
        }

        rc = setAdvertisingData(advPayloadCopy, _scanResponse);
        if (rc == BLE_ERROR_NONE) {
            _advPayload = advPayloadCopy;
        }

        return rc;
    }
/**
     * Accumulate an AD structure in the advertising payload. Please note that
     * the payload is limited to 31 bytes. The SCAN_RESPONSE message may be used
     * as an additional 31 bytes if the advertising payload is too
     * small.
     *
     * @param[in] flags
     *              The flags to be added. Please refer to
     *              GapAdvertisingData::Flags for valid flags. Multiple
     *              flags may be specified in combination.
     *
     * @return BLE_ERROR_NONE if the data was successfully added to the
     *         advertising payload.
     */
Accumulate an AD structure in the advertising payload. Please note that
the payload is limited to 31 bytes. The SCAN_RESPONSE message may be used
as an additional 31 bytes if the advertising payload is too
small.

@param[in] flags
The flags to be added. Please refer to
GapAdvertisingData::Flags for valid flags. Multiple
flags may be specified in combination.

@return BLE_ERROR_NONE if the data was successfully added to the
advertising payload.
Accumulate an AD structure in the advertising payload . Please note that the payload is limited to 31 bytes . The SCAN_RESPONSE message may be used as an additional 31 bytes if the advertising payload is too small . @param [ in ] flags The flags to be added . Please refer to GapAdvertisingData :: Flags for valid flags . Multiple flags may be specified in combination . @return BLE_ERROR_NONE if the data was successfully added to the advertising payload .
ble_error_t accumulateAdvertisingPayload(uint8_t flags) {
        GapAdvertisingData advPayloadCopy = _advPayload;
        ble_error_t rc;
        if ((rc = advPayloadCopy.addFlags(flags)) != BLE_ERROR_NONE) {
            return rc;
        }
        rc = setAdvertisingData(advPayloadCopy, _scanResponse);
        if (rc == BLE_ERROR_NONE) {
            _advPayload = advPayloadCopy;
        }
        return rc;
    }
ble_error_t accumulateAdvertisingPayload ( uint8_t flags ) { GapAdvertisingData advPayloadCopy = _advPayload ; ble_error_t rc ; if ( ( rc = advPayloadCopy . addFlags ( flags ) ) != BLE_ERROR_NONE ) { return rc ; } rc = setAdvertisingData ( advPayloadCopy , _scanResponse ) ; if ( rc == BLE_ERROR_NONE ) { _advPayload = advPayloadCopy ; } return rc ; }
Accumulate an AD structure in the advertising payload.
Accumulate an AD structure in the advertising payload .