From 758c6714ee43c71a46512b6b237dba4d1782d1be Mon Sep 17 00:00:00 2001 From: doudar Date: Fri, 19 Jan 2024 19:19:10 -0600 Subject: [PATCH] turned on active scanning --- src/BLE_Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BLE_Client.cpp b/src/BLE_Client.cpp index 91005fd2..dbd49667 100644 --- a/src/BLE_Client.cpp +++ b/src/BLE_Client.cpp @@ -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