From d0d62dc41a87a3ae42b92b226e2b1cbbe1d5daf9 Mon Sep 17 00:00:00 2001 From: Guo-Rong <5484552+gkoh@users.noreply.github.com> Date: Fri, 4 Oct 2024 11:53:52 +0930 Subject: [PATCH] Log RSSI from scan matches. This may (or may not) help debug signal strength issues. --- lib/furble/Furble.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/furble/Furble.cpp b/lib/furble/Furble.cpp index 6489641..80886ff 100644 --- a/lib/furble/Furble.cpp +++ b/lib/furble/Furble.cpp @@ -21,6 +21,7 @@ HIDServer *Scan::m_HIDServer = nullptr; class Scan::ScanCallback: public NimBLEScanCallbacks { void onResult(NimBLEAdvertisedDevice *pDevice) { if (CameraList::match(pDevice)) { + ESP_LOGI(LOG_TAG, "RSSI(%s) = %d", pDevice->getName().c_str(), pDevice->getRSSI()); if (m_ScanResultCallback != nullptr) { (m_ScanResultCallback)(m_ScanResultPrivateData); }