2024-10-0100

This commit is contained in:
hans-jurgen 2024-10-01 10:39:45 +02:00
parent a4817f27f1
commit 1f3d7cb82c
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

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