diff --git a/src/main.cpp b/src/main.cpp index 941a5dc..519f9f2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -143,7 +143,7 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks Serial.print(" Device name: "); Serial.print(advertisedDevice.getName().c_str()); } */ - if (advertisedDevice.getAddress().equals(*pServerAddress)) // ibeacon Adresse Vergleichen + if (advertisedDevice.getAddress().equals(*pServerAddress)and (advertisedDevice.getRSSI() > -85)) // ibeacon Adresse Vergleichen { Serial.print(" Ueberwachte Adresse"); // wenn überwache Adresse gefunden wurde if (advertisedDevice.haveName()) {