Hi Makers!

I was wondering that the scanning example was not showing the RSSI Value. People on the Net are telling you have to establish a connection before you can measure  RSSI. That is wrong.

You can  get it within one minute by:

  1. Load the example BLE_Scan example
  2. In the class „MyAdvertisedDeviceCallbacks:….“ use advertisedDevice.getRSSI() to receive the value.

In my sketch it looks  like this:

class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
   void onResult(BLEAdvertisedDevice advertisedDevice) {
     Serial.printf("Advertised Device: %s", advertisedDevice.toString().c_str());
     Serial.print(" RSSI: ");
     Serial.println(advertisedDevice.getRSSI());
   }
};

Have fun and keep make cool stuff!

Torsten