File tree Expand file tree Collapse file tree 5 files changed +10
-20
lines changed
examples/Refactored_original_examples Expand file tree Collapse file tree 5 files changed +10
-20
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ void setup() {
116116 BLEAdvertising *pAdvertising = BLEDevice::getAdvertising ();
117117 pAdvertising->addServiceUUID (SERVICE_UUID);
118118 pAdvertising->setScanResponse (false );
119- pAdvertising->setMinPreferred (0x0 ); // set value to 0x00 to not advertise this parameter
119+ /* *This method is removed as it was no longer useful and consumed advertising space
120+ * pAdvertising->setMinPreferred(0x0); // set value to 0x00 to not advertise this parameter
121+ */
120122 BLEDevice::startAdvertising ();
121123 Serial.println (" Waiting a client connection to notify..." );
122124}
Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ void setup() {
4444 BLEAdvertising *pAdvertising = BLEDevice::getAdvertising ();
4545 pAdvertising->addServiceUUID (SERVICE_UUID);
4646 pAdvertising->setScanResponse (true );
47- pAdvertising->setMinPreferred (0x06 ); // functions that help with iPhone connections issue
48- pAdvertising->setMinPreferred (0x12 );
47+ /* *These methods are removed as they are no longer useful and consumed advertising space
48+ * pAdvertising->setMinPreferred(0x06); // functions that help with iPhone connections issue
49+ * pAdvertising->setMinPreferred(0x12);
50+ */
4951 BLEDevice::startAdvertising ();
5052 Serial.println (" Characteristic defined! Now you can read it in your phone!" );
5153}
Original file line number Diff line number Diff line change @@ -120,7 +120,9 @@ void setup() {
120120 BLEAdvertising *pAdvertising = BLEDevice::getAdvertising ();
121121 pAdvertising->addServiceUUID (SERVICE_UUID);
122122 pAdvertising->setScanResponse (false );
123- pAdvertising->setMinPreferred (0x0 ); // set value to 0x00 to not advertise this parameter
123+ /* *This method is removed it was no longer useful and consumed advertising space
124+ * pAdvertising->setMinPreferred(0x0); // set value to 0x00 to not advertise this parameter
125+ */
124126 BLEDevice::startAdvertising ();
125127 Serial.println (" Waiting a client connection to notify..." );
126128}
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
9391private:
You can’t perform that action at this time.
0 commit comments