Comparacion de datos (MAC address)

Hola estimados,
Estoy intentando realizar un scan BLE y poner un pin high si en el scan encuentro TODAS las mac address prefijadas.
Al momento de hacer la comparación, el código solo compara la última dirección MAC del scan BLE, no puedo hacer que tome TODAS las direcciones encontradas y las compare con las guardadas
Alguien sabe como hacerlo?

#include "BLEDevice.h"


static BLEAddress *pServerAddress;

#define LED 2

BLEScan* pBLEScan;
BLEClient*  pClient;
bool deviceFound = false;

String knownAddresses[] = {"08:7c:be:25:5b:73","08:7c:be:e2:3c:90"};




class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
    /**
        Called for each advertising BLE server.
    */
    void onResult(BLEAdvertisedDevice advertisedDevice) {
     
      pServerAddress = new BLEAddress(advertisedDevice.getAddress());
   

      bool known = false;
      for (int i = 0; i < (sizeof(knownAddresses) / sizeof(knownAddresses[0])); i++) {
        if (strcmp(pServerAddress->toString().c_str(), knownAddresses[i].c_str()) == 0) known = true;
      }
      if (known) {
        Serial.print("Device found: ");
        Serial.print(sizeof(knownAddresses) / sizeof(knownAddresses[0])); 
       
        Serial.println(advertisedDevice.getRSSI());
        if (advertisedDevice.getRSSI() > -80) deviceFound = true;
        else deviceFound = false;
        advertisedDevice.getScan()->stop();
      }
    }
}; // MyAdvertisedDeviceCallbacks



void setup() {
  Serial.begin(115200);
   pinMode(LED, OUTPUT);
  digitalWrite(LED, LOW);

  BLEDevice::init("");

  pClient  = BLEDevice::createClient();
   pBLEScan = BLEDevice::getScan();
  pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks());
  pBLEScan->setActiveScan(true);
}

void loop() {

  Serial.println();
  deviceFound = false;
  BLEScanResults scanResults = pBLEScan->start(1);
  if (deviceFound) {
    Serial.println("on");
    digitalWrite(LED, HIGH);
    delay(1500);

  }
  else {
    Serial.println("off");
    digitalWrite(LED, LOW);
  }
} // End of loop