BLE.scan will not work after a BLE.scanFor[Uuid|Name|Address], even after a BLE.stopScan #350
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Hello! Thank you for building and maintaining this library. Here is a simple test case with a buggy path, and a separate workaround using the existing library code:
From looking at GAP.cpp, it seems that _scanNameFilter, _scanUuidFilter, and _scanAddressFilter are not unset during a stopScan, so a BLE.scan will continue to use the previous filters (since BLE.available is where the filters are used). You can unset the filters by passing an empty string to scanForUuid(), scanForName(), or scanForAddress(), at which point the subsequent BLE.scan will start working.
The text was updated successfully, but these errors were encountered: