BLE Get Rssi From A Device In A List - Arduino Forum Home » Arduino Ble Rssi Example » BLE Get Rssi From A Device In A List - Arduino Forum Maybe your like Arduino Ble Send Byte Array Arduino Ble Send Float Arduino Ble Shield Tutorial Arduino Ble Tx Power Arduino Ble Uart Example BLE get rssi from a device in a list Projects Programming natrizkiandral May 23, 2022, 3:02pm 1 Greetings, I am working on a BLE scanner using ESP32 using this library. I got it working to scan nearby devices and getting rssi from those devices. The problem is I only need to get rssi from a known device, and using the BLE_scan example I get the rssi from all of the devices that are scanned. I don't really know what to do since I am new to ESP and programming. This is the code that I write, any help is really appreciated guys, thank you. #include <BLEDevice.h> #include <BLEUtils.h> #include <BLEScan.h> #include <BLEAdvertisedDevice.h> String knownBLEAddress[] = {"ff:ff:10:02:c8:57"}; bool device_found; int scanTime = 5; //In seconds BLEScan* pBLEScan; class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { void onResult(BLEAdvertisedDevice advertisedDevice) { for (int i = 0; i < (sizeof(knownBLEAddress) / sizeof(knownBLEAddress[0])); i++) { if (strcmp(advertisedDevice.getAddress().toString().c_str(), knownBLEAddress[i].c_str()) == 0) { device_found = true; break; } else device_found = false; } //Serial.printf("Advertised Device: %s \n", advertisedDevice.toString().c_str()); } }; void setup() { Serial.begin(115200); //Enable UART on ESP32 Serial.println("Scanning..."); // Print Scanning BLEDevice::init(""); pBLEScan = BLEDevice::getScan(); //create new scan pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks()); //Init Callback Function pBLEScan->setActiveScan(true); //active scan uses more power, but get results faster pBLEScan->setInterval(100); // set Scan interval pBLEScan->setWindow(99); // less or equal setInterval value } void loop() { // put your main code here, to run repeatedly: BLEScanResults foundDevices = pBLEScan->start(scanTime, false); for (int i = 0; i < foundDevices.getCount(); i++) { BLEAdvertisedDevice device = foundDevices.getDevice(i); if (device_found == true){ int rssi = device.getRSSI(); Serial.print("RSSI : "); Serial.println(rssi); } else { Serial.print("None"); } } pBLEScan->clearResults(); // delete results fromBLEScan buffer to release memory } sterretje May 23, 2022, 5:37pm 2 Welcome to the forum and thanks for using code tags in your first post. Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project natrizkiandral May 24, 2022, 8:00am 3 Thank you I'll be careful in choosing the category on my next post! system Closed November 20, 2022, 8:01am 4 This topic was automatically closed 180 days after the last reply. New replies are no longer allowed. Related topics Topic Replies Views Activity ESP32 how to read bluetooth rssi Programming 1 45 November 23, 2025 How to get ble RSSI value General Guidance 15 3796 November 28, 2022 BLE connection, retrieve RSSI with connected device Programming 1 1387 November 15, 2022 Getting RSSI Value while using ESP32 as BLE Server Programming 1 631 September 4, 2024 Getting RSSI values of scanned ble peripherals with Arduino 101 101 4 3691 May 6, 2021 Tag » Arduino Ble Rssi Example BLE RSSI Of Connected Device - Arduino Forum RSSI Based Social Distancing - Arduino Project Hub ArduinoBLE - Arduino Reference Arduino Distance Meassuring Through Bluetooth Low Energy Signal ... Arduino Distance Meassuring Through Bluetooth Classic Signal ... A Practice Of BLE RSSI Measurement For Indoor Positioning - MDPI Finding Rssi Of A Specific Uuid Ble Device With Arduino Ide - ADocLib How Can BLE Client Detecting RSSI In Connecting With Server,not ... (PDF) A Practice Of BLE RSSI Measurement For Indoor Positioning Convert RSSI Value Of The BLE (Bluetooth Low Energy) Beacons To ... ESP32 Bluetooth Low Energy (BLE) On Arduino IDE Esp32 Bluetooth Low Energy Get RSSI Strength From IOS & Android How To Improve RSSI On ESP32 BLE Device [closed] BLEScanner | Bluefruit NRF52 Feather Learning Guide