From 1f3d7cb82c82a427b5942f2d0f01c9c3e60e7ff1 Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Tue, 1 Oct 2024 10:39:45 +0200 Subject: [PATCH] 2024-10-0100 --- platformio.ini | 4 +++- src/main.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 2491ec8..3345957 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,13 +16,15 @@ board_build.partitions = huge_app.csv upload_port = /dev/ttyUSB0 monitor_port = /dev/ttyUSB0 monitor_speed = 115200 +monitor_filters = time lib_deps = knolleary/PubSubClient @ 2.8 [env:debug] ; Entwicklungssystem build_flags = ${env.build_flags} - -DTRANSPONDER=\"fa:e7:8e:f8:fd:42\" + -DTRANSPONDER=\"fa:e7:8e:f8:fd:42\" ; MAC des Transponders + -DKDB=-85 ; Mindest Signalstärke -DORT=\"HJK\" -DDEBUG=0 -DNOADS=0 diff --git a/src/main.cpp b/src/main.cpp index 41288b2..6b550aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,7 +144,7 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks Serial.print(" Device name: "); Serial.print(advertisedDevice.getName().c_str()); } */ - if (advertisedDevice.getAddress().equals(*pServerAddress)and (advertisedDevice.getRSSI() > -85)) // ibeacon Adresse Vergleichen + if (advertisedDevice.getAddress().equals(*pServerAddress)and (advertisedDevice.getRSSI() > KDB)) // ibeacon Adresse Vergleichen { Serial.print(" Ueberwachte Adresse"); // wenn überwache Adresse gefunden wurde if (advertisedDevice.haveName()) {