2024-09-3000

This commit is contained in:
hans-jurgen 2024-09-30 12:56:09 +02:00
parent e486eae03f
commit e5b2a06101

View File

@ -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()) {