Skip to content

Commit d3aa435

Browse files
committed
NimBLEAdvertising: Remove setMin/maxPreferred methods.
* These methods were noop's and are now removed due to lack of usefulness and advertisment space consumed if used. Applications can still manually set these values if desired using NimBLEAdvertisementData::addData.
1 parent 708afeb commit d3aa435

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/NimBLEAdvertising.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,6 @@ void NimBLEAdvertising::setMaxInterval(uint16_t maxinterval) {
136136
} // setMaxInterval
137137

138138

139-
/**
140-
* @brief NOP - Not yet implemented, dummy function for backward compatibility.
141-
*/
142-
void NimBLEAdvertising::setMinPreferred(uint16_t mininterval) {
143-
} // setMinPreferred
144-
145-
146-
/**
147-
* @brief NOP - Not yet implemented, dummy function for backward compatibility.
148-
*/
149-
void NimBLEAdvertising::setMaxPreferred(uint16_t maxinterval) {
150-
} // setMaxPreferred
151-
152-
153139
/**
154140
* @brief Set if scan response is available.
155141
* @param [in] set true = scan response available.

src/NimBLEAdvertising.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ class NimBLEAdvertising {
8686
void setAdvertisementData(NimBLEAdvertisementData& advertisementData);
8787
void setScanFilter(bool scanRequertWhitelistOnly, bool connectWhitelistOnly);
8888
void setScanResponseData(NimBLEAdvertisementData& advertisementData);
89-
void setMinPreferred(uint16_t);
90-
void setMaxPreferred(uint16_t);
9189
void setScanResponse(bool);
9290

9391
private:

0 commit comments

Comments
 (0)