Skip to content

Commit

Permalink
Log RSSI from scan matches.
Browse files Browse the repository at this point in the history
This may (or may not) help debug signal strength issues.
  • Loading branch information
gkoh committed Oct 4, 2024
1 parent 23044e6 commit d0d62dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/furble/Furble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d0d62dc

Please sign in to comment.