Skip to content

Commit

Permalink
turned on active scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
doudar committed Jan 20, 2024
1 parent 5a9abaf commit 758c671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BLE_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ void SpinBLEClient::scanProcess(int duration) {
pBLEScan->setInterval(49); // 97
pBLEScan->setWindow(33); // 67
pBLEScan->setDuplicateFilter(true);
pBLEScan->setActiveScan(false); //might cause memory leak if true - undetermined
pBLEScan->setActiveScan(true); //might cause memory leak if true - undetermined. We don't get device names without it.
BLEScanResults foundDevices = pBLEScan->start(duration, true);
this->dontBlockScan = false;
// Load the scan into a Json String
Expand Down

0 comments on commit 758c671

Please sign in to comment.