Implement Fast Pair scanner

PiperOrigin-RevId: 506807562
This commit is contained in:
Qin Wang
2023-02-02 21:57:35 -08:00
committed by Copybara-Service
parent 1c19d52f29
commit c52f1a4000
8 changed files with 382 additions and 48 deletions
+1 -1
View File
@@ -24,11 +24,11 @@ namespace fastpair {
FastPairControllerImpl::FastPairControllerImpl() {
NEARBY_LOGS(INFO) << "FastPairControllerImpl starts.";
scanner_ = std::make_unique<FastPairScannerImpl>();
}
FastPairControllerImpl::~FastPairControllerImpl() = default;
void FastPairControllerImpl::StartScan() {
scanner_ = std::make_unique<FastPairScannerImpl>();
if (is_scanning_) {
NEARBY_LOGS(VERBOSE) << __func__ << ": We're currently scanning. ";
return;