mirror of https://github.com/ARMmbed/mbed-os.git
BLE: remove minimize fragmentation parameter in Gap.
parent
4058f0908a
commit
6b8b1d0b7a
|
|
@ -336,13 +336,12 @@ public:
|
|||
*
|
||||
* @param handle Advertising set handle.
|
||||
* @param payload Advertising payload.
|
||||
* @param minimiseFragmentation Preference for fragmentation.
|
||||
*
|
||||
* @return BLE_ERROR_NONE on success.
|
||||
*/
|
||||
virtual ble_error_t setAdvertisingPayload(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> payload,
|
||||
bool minimiseFragmentation = false
|
||||
mbed::Span<const uint8_t> payload
|
||||
);
|
||||
|
||||
/** Set new advertising scan response for a given advertising set. This will be sent to
|
||||
|
|
@ -350,13 +349,12 @@ public:
|
|||
*
|
||||
* @param handle Advertising set handle.
|
||||
* @param response Advertising scan response.
|
||||
* @param minimiseFragmentation Preference for fragmentation.
|
||||
*
|
||||
* @return BLE_ERROR_NONE on success.
|
||||
*/
|
||||
virtual ble_error_t setAdvertisingScanResponse(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> response,
|
||||
bool minimiseFragmentation = false
|
||||
mbed::Span<const uint8_t> response
|
||||
);
|
||||
|
||||
/** Start advertising using the given advertising set.
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public:
|
|||
*
|
||||
* @param generic_access_service Platform abstraction instance managing
|
||||
* the GATT generic access service.
|
||||
*
|
||||
*
|
||||
* @param pal_sm Security Manager Platform abstraction instance containing the base
|
||||
* Security Manager primitives.
|
||||
*/
|
||||
|
|
@ -114,16 +114,14 @@ public:
|
|||
*/
|
||||
virtual ble_error_t setAdvertisingPayload(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> payload,
|
||||
bool minimiseFragmentation
|
||||
mbed::Span<const uint8_t> payload
|
||||
);
|
||||
|
||||
/** @copydoc Gap::setAdvertisingScanResponse
|
||||
*/
|
||||
virtual ble_error_t setAdvertisingScanResponse(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> response,
|
||||
bool minimiseFragmentation
|
||||
mbed::Span<const uint8_t> response
|
||||
);
|
||||
|
||||
/** @copydoc Gap::startAdvertising
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ ble_error_t Gap::setAdvertisingParameters(
|
|||
|
||||
ble_error_t Gap::setAdvertisingPayload(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> payload,
|
||||
bool minimiseFragmentation
|
||||
mbed::Span<const uint8_t> payload
|
||||
)
|
||||
{
|
||||
/* Requesting action from porter(s): override this API if this capability is supported. */
|
||||
|
|
@ -72,8 +71,7 @@ ble_error_t Gap::setAdvertisingPayload(
|
|||
|
||||
ble_error_t Gap::setAdvertisingScanResponse(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> response,
|
||||
bool minimiseFragmentation
|
||||
mbed::Span<const uint8_t> response
|
||||
)
|
||||
{
|
||||
/* Requesting action from porter(s): override this API if this capability is supported. */
|
||||
|
|
|
|||
|
|
@ -1939,20 +1939,28 @@ ble_error_t GenericGap::setExtendedAdvertisingParameters(
|
|||
|
||||
ble_error_t GenericGap::setAdvertisingPayload(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> payload,
|
||||
bool minimiseFragmentation
|
||||
mbed::Span<const uint8_t> payload
|
||||
)
|
||||
{
|
||||
return setAdvertisingData(handle, payload, minimiseFragmentation, false);
|
||||
return setAdvertisingData(
|
||||
handle,
|
||||
payload,
|
||||
/* minimise fragmentation */ true,
|
||||
/* scan response */ true
|
||||
);
|
||||
}
|
||||
|
||||
ble_error_t GenericGap::setAdvertisingScanResponse(
|
||||
advertising_handle_t handle,
|
||||
mbed::Span<const uint8_t> response,
|
||||
bool minimiseFragmentation
|
||||
mbed::Span<const uint8_t> response
|
||||
)
|
||||
{
|
||||
return setAdvertisingData(handle, response, minimiseFragmentation, true);
|
||||
return setAdvertisingData(
|
||||
handle,
|
||||
response,
|
||||
/* minimise fragmentation */ true,
|
||||
/* scan response */ true
|
||||
);
|
||||
}
|
||||
|
||||
ble_error_t GenericGap::setAdvertisingData(
|
||||
|
|
|
|||
Loading…
Reference in New Issue