ble/Gap.h
ble_error_t accumulateAdvertisingPayloadTxPower(int8_t power) {
        GapAdvertisingData advPayloadCopy = _advPayload;
        ble_error_t rc;
        if ((rc = advPayloadCopy.addTxPower(power)) != 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]  power
     *              The max transmit power to be used by the controller (in dBm).
     *
     * @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]  power
The max transmit power to be used by the controller (in dBm).

@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 ] power The max transmit power to be used by the controller ( in dBm ) . @return BLE_ERROR_NONE if the data was successfully added to the advertising payload .
ble_error_t accumulateAdvertisingPayloadTxPower(int8_t power) {
        GapAdvertisingData advPayloadCopy = _advPayload;
        ble_error_t rc;
        if ((rc = advPayloadCopy.addTxPower(power)) != BLE_ERROR_NONE) {
            return rc;
        }
        rc = setAdvertisingData(advPayloadCopy, _scanResponse);
        if (rc == BLE_ERROR_NONE) {
            _advPayload = advPayloadCopy;
        }
        return rc;
    }
ble_error_t accumulateAdvertisingPayloadTxPower ( int8_t power ) { GapAdvertisingData advPayloadCopy = _advPayload ; ble_error_t rc ; if ( ( rc = advPayloadCopy . addTxPower ( power ) ) != 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 .