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