mark BLEDevice::setAdvertisingData() as deprecated
This commit is contained in:
parent
05a4e99f5d
commit
b347ecd31f
1 changed files with 20 additions and 17 deletions
|
@ -52,10 +52,6 @@ public:
|
|||
*/
|
||||
ble_error_t setAddress(Gap::addr_type_t type, const uint8_t address[6]);
|
||||
|
||||
ble_error_t setAdvertisingData(const GapAdvertisingData &ADStructures,
|
||||
const GapAdvertisingData &scanResponse);
|
||||
ble_error_t setAdvertisingData(const GapAdvertisingData &ADStructures);
|
||||
|
||||
/**
|
||||
* @param[in] advType
|
||||
* The GAP advertising mode to use for this device. Valid
|
||||
|
@ -139,6 +135,10 @@ private:
|
|||
* DEPRECATED
|
||||
*/
|
||||
public:
|
||||
ble_error_t setAdvertisingData(const GapAdvertisingData &ADStructures,
|
||||
const GapAdvertisingData &scanResponse);
|
||||
ble_error_t setAdvertisingData(const GapAdvertisingData &ADStructures);
|
||||
|
||||
ble_error_t startAdvertising(const GapAdvertisingParams &advParams);
|
||||
};
|
||||
|
||||
|
@ -174,18 +174,6 @@ BLEDevice::setAddress(Gap::addr_type_t type, const uint8_t address[6]) {
|
|||
return transport->getGap().setAddress(type, address);
|
||||
}
|
||||
|
||||
inline ble_error_t
|
||||
BLEDevice::setAdvertisingData(const GapAdvertisingData &ADStructures,
|
||||
const GapAdvertisingData &scanResponse) {
|
||||
return transport->getGap().setAdvertisingData(ADStructures, scanResponse);
|
||||
}
|
||||
|
||||
inline ble_error_t
|
||||
BLEDevice::setAdvertisingData(const GapAdvertisingData &ADStructures) {
|
||||
GapAdvertisingData scanResponse;
|
||||
return transport->getGap().setAdvertisingData(ADStructures, scanResponse);
|
||||
}
|
||||
|
||||
inline void
|
||||
BLEDevice::setAdvertisingType(GapAdvertisingParams::AdvertisingType advType) {
|
||||
advParams.setAdvertisingType(advType);
|
||||
|
@ -221,7 +209,22 @@ BLEDevice::disconnect(void) {
|
|||
return transport->getGap().disconnect();
|
||||
}
|
||||
|
||||
/* DEPRECATED */
|
||||
/*
|
||||
* ALL OF THE FOLLOWING METHODS ARE DEPRECATED
|
||||
*/
|
||||
|
||||
inline ble_error_t
|
||||
BLEDevice::setAdvertisingData(const GapAdvertisingData &ADStructures,
|
||||
const GapAdvertisingData &scanResponse) {
|
||||
return transport->getGap().setAdvertisingData(ADStructures, scanResponse);
|
||||
}
|
||||
|
||||
inline ble_error_t
|
||||
BLEDevice::setAdvertisingData(const GapAdvertisingData &ADStructures) {
|
||||
GapAdvertisingData scanResponse;
|
||||
return transport->getGap().setAdvertisingData(ADStructures, scanResponse);
|
||||
}
|
||||
|
||||
inline ble_error_t
|
||||
BLEDevice::startAdvertising(const GapAdvertisingParams &_advParams) {
|
||||
return transport->getGap().startAdvertising(_advParams);
|
||||
|
|
Loading…
Reference in a new issue