From e5b2a06101f192abab81735c0371992e37f4fad5 Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Mon, 30 Sep 2024 12:56:09 +0200 Subject: [PATCH] 2024-09-3000 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {