@@ -361,83 +361,70 @@ class BLEDevice
361361 // void scanForAddress(String address); // Not include in baseline. Add here as feature for feature release.
362362
363363 /* *
364- * @brief Start scanning for peripherals without filter
364+ * @brief Start scanning for peripherals with the option of accepting all detectable
365+ * Peripherals or just the newly detected.
365366 *
366- * @param none
367- *
368- * @return none
369- *
370- * @note none
371- */
372- void scan ();
373-
374- /* *
375- * @brief Start scanning for peripherals with filter
376- *
377- * @param[in] withDuplicates true - with duplicate filter
378- * false- without duplicate filter
379- *
380- * @return none
381- *
382- * @note option to filter out duplicate addresses for Arduino.
383- * The current only support fileter duplicate mode.
384- */
385- void scan (bool withDuplicates);
386-
387- /* *
388- * @brief Start scanning for peripherals and filter by device name in ADV
389- *
390- * @param name The device's local name.
367+ * @param[in] withDuplicates true - return all detectable Peripherals.
368+ * false- return only new Peripherals.
391369 *
392370 * @return none
393371 *
394- * @note option to filter out duplicate addresses for Arduino .
395- * The current only support fileter duplicate mode .
372+ * @note When, withDuplicates = true (default), accept all detectable Peripherals .
373+ * No Peripheral filtering process applied to the scan result .
396374 */
397- void scanForName (String name );
375+ void scan ( bool withDuplicates = true );
398376
399377 /* *
400- * @brief Start scanning for peripherals and filter by device name in ADV
378+ * @brief Start scanning for peripherals and filter by device name in ADV and
379+ * the option of accepting all detectable Peripherals or just the
380+ * newly detected.
401381 *
402382 * @param[in] name The device's local name.
403383 *
404- * @param[in] withDuplicates true - with duplicate filter
405- * false- without duplicate filter
384+ * @param[in] withDuplicates true - return all detectable Peripherals.
385+ * false- return only new Peripherals.
406386 *
407387 * @return none
408388 *
409- * @note option to filter out duplicate addresses for Arduino .
410- * The current only support fileter duplicate mode .
389+ * @note When, withDuplicates = true (default), accept all detectable Peripherals .
390+ * No Peripheral filtering process applied to the scan result .
411391 */
412- void scanForName (String name, bool withDuplicates);
392+ void scanForName (String name, bool withDuplicates = true );
413393
414394 /* *
415- * @brief Start scanning for peripherals and filter by service in ADV
395+ * @brief Start scanning for peripherals and filter by service in ADV and
396+ * the option of accepting all detectable Peripherals or just the
397+ * newly detected.
416398 *
417- * @param service The service
399+ * @param[in] service The service
400+ *
401+ * @param[in] withDuplicates true - return all detectable Peripherals.
402+ * false- return only new Peripherals.
418403 *
419404 * @return none
420405 *
421- * @note none
406+ * @note When, withDuplicates = true (default), accept all detectable Peripherals.
407+ * No Peripheral filtering process applied to the scan result.
422408 */
423- void scanForUuid (String uuid);
409+ void scanForUuid (String uuid, bool withDuplicates = true );
424410
425411 /* *
426- * @brief Start scanning for peripherals and filter by service in ADV
412+ * @brief Start scanning for peripherals and filter by MAC address and
413+ * the option of accepting all detectable Peripherals or just the
414+ * newly detected.
427415 *
428- * @param[in] service The service
416+ * @param[in] macaddr The Peripheral MAC address
429417 *
430- * @param[in] withDuplicates true - with duplicate filter
431- * false- without duplicate filter
418+ * @param[in] withDuplicates true - return all detectable Peripherals.
419+ * false- return only new Peripherals.
432420 *
433421 * @return none
434422 *
435- * @note option to filter out duplicate addresses for Arduino .
436- * The current only support fileter duplicate mode .
423+ * @note When, withDuplicates = true (default), accept all detectable Peripherals .
424+ * No Peripheral filtering process applied to the scan result .
437425 */
438- void scanForUuid (String uuid, bool withDuplicates);
439-
440426 void scanForAddress (String macaddr, bool withDuplicates = true );
427+
441428 /* *
442429 * @brief Stop scanning for peripherals
443430 *
@@ -679,15 +666,15 @@ class BLEDevice
679666 void preCheckProfile ();
680667
681668 /* *
682- * @brief Start scanning for peripherals with/without duplicate filter
669+ * @brief Start scanning for peripherals with the option of accepting all
670+ * detectable Peripherals or just the newly detected.
683671 *
684672 * @param[in] withDuplicates true - with duplicate filter
685673 * false- without duplicate filter
686674 *
687675 * @return none
688676 *
689- * @note option to filter out duplicate addresses for Arduino.
690- * The current only support fileter duplicate mode.
677+ * @note When, withDuplicates = true (default), accept all detectable Peripherals.
691678 */
692679 bool startScan (bool withDuplicates);
693680
0 commit comments