@@ -365,14 +365,16 @@ class BLEDevice
365
365
* Peripherals or just the newly detected.
366
366
*
367
367
* @param[in] withDuplicates true - return all detectable Peripherals.
368
- * false- return only new Peripherals .
368
+ * false- return a detected Peripheral only once .
369
369
*
370
370
* @return none
371
371
*
372
- * @note When, withDuplicates = true (default) , accept all detectable Peripherals.
372
+ * @note When, withDuplicates = true, accept all detectable Peripherals.
373
373
* No Peripheral filtering process applied to the scan result.
374
+ * By default, withDuplicates = false, a detected Peripheral is
375
+ * reported once.
374
376
*/
375
- void scan (bool withDuplicates = true );
377
+ void scan (bool withDuplicates = false );
376
378
377
379
/* *
378
380
* @brief Start scanning for peripherals and filter by device name in ADV and
@@ -382,14 +384,16 @@ class BLEDevice
382
384
* @param[in] name The device's local name.
383
385
*
384
386
* @param[in] withDuplicates true - return all detectable Peripherals.
385
- * false- return only new Peripherals .
387
+ * false- return a detected Peripheral only once .
386
388
*
387
389
* @return none
388
390
*
389
- * @note When, withDuplicates = true (default) , accept all detectable Peripherals.
391
+ * @note When, withDuplicates = true, accept all detectable Peripherals.
390
392
* No Peripheral filtering process applied to the scan result.
393
+ * By default, withDuplicates = false, a detected Peripheral is
394
+ * reported once.
391
395
*/
392
- void scanForName (String name, bool withDuplicates = true );
396
+ void scanForName (String name, bool withDuplicates = false );
393
397
394
398
/* *
395
399
* @brief Start scanning for peripherals and filter by service in ADV and
@@ -399,14 +403,16 @@ class BLEDevice
399
403
* @param[in] service The service
400
404
*
401
405
* @param[in] withDuplicates true - return all detectable Peripherals.
402
- * false- return only new Peripherals .
406
+ * false- return a detected Peripheral only once .
403
407
*
404
408
* @return none
405
409
*
406
- * @note When, withDuplicates = true (default), accept all detectable Peripherals.
407
- * No Peripheral filtering process applied to the scan result.
410
+ * @note When, withDuplicates = true, accept all detectable Peripherals.
411
+ * No Peripheral filtering process applied to the scan result.
412
+ * By default, withDuplicates = false, a detected Peripheral is
413
+ * reported once.
408
414
*/
409
- void scanForUuid (String uuid, bool withDuplicates = true );
415
+ void scanForUuid (String uuid, bool withDuplicates = false );
410
416
411
417
/* *
412
418
* @brief Start scanning for peripherals and filter by MAC address and
@@ -416,14 +422,16 @@ class BLEDevice
416
422
* @param[in] macaddr The Peripheral MAC address
417
423
*
418
424
* @param[in] withDuplicates true - return all detectable Peripherals.
419
- * false- return only new Peripherals .
425
+ * false- return a detected Peripheral only once .
420
426
*
421
427
* @return none
422
428
*
423
- * @note When, withDuplicates = true (default), accept all detectable Peripherals.
424
- * No Peripheral filtering process applied to the scan result.
429
+ * @note When, withDuplicates = true, accept all detectable Peripherals.
430
+ * No Peripheral filtering process applied to the scan result.
431
+ * By default, withDuplicates = false, a detected Peripheral is
432
+ * reported once.
425
433
*/
426
- void scanForAddress (String macaddr, bool withDuplicates = true );
434
+ void scanForAddress (String macaddr, bool withDuplicates = false );
427
435
428
436
/* *
429
437
* @brief Stop scanning for peripherals
@@ -669,12 +677,12 @@ class BLEDevice
669
677
* @brief Start scanning for peripherals with the option of accepting all
670
678
* detectable Peripherals or just the newly detected.
671
679
*
672
- * @param[in] withDuplicates true - with duplicate filter
673
- * false- without duplicate filter
680
+ * @param[in] withDuplicates true - return all detectable Peripherals.
681
+ * false- return a detected Peripheral only once.
674
682
*
675
683
* @return none
676
684
*
677
- * @note When, withDuplicates = true (default) , accept all detectable Peripherals.
685
+ * @note When, withDuplicates = true, accept all detectable Peripherals.
678
686
*/
679
687
bool startScan (bool withDuplicates);
680
688
0 commit comments