2024-09-2900 Neuer Kennungs Sender

This commit is contained in:
hans-jurgen 2024-09-29 20:21:55 +02:00
parent dfbf5b62ed
commit e486eae03f
3 changed files with 15 additions and 4 deletions

View File

@ -0,0 +1,9 @@
{
"folders": [
{
"name": "Beacon_scaner",
"path": "."
}
],
"settings": {}
}

View File

@ -22,8 +22,8 @@ lib_deps =
[env:debug] ; Entwicklungssystem
build_flags = ${env.build_flags}
-DTRANSPONDER=\"96:33:bb:bf:ff:ab\"
-DORT=\"Wohnung\"
-DTRANSPONDER=\"fa:e7:8e:f8:fd:42\"
-DORT=\"HJK\"
-DDEBUG=0
-DNOADS=0
-DNAME=\"BLE-Praesenz\"

View File

@ -137,6 +137,8 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks
{
//Serial.print(ZZ); Serial.print("\t");
Serial.print(advertisedDevice.getAddress().toString().c_str()); // ibeacon Adresse anzeigen
Serial.print(" RSSI: ");
Serial.print(advertisedDevice.getRSSI());
/* if (advertisedDevice.haveName()) {
Serial.print(" Device name: ");
Serial.print(advertisedDevice.getName().c_str());
@ -151,8 +153,8 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks
Serial.print(" RSSI: ");
Serial.print(advertisedDevice.getRSSI());
Serial.print(" dB ");
Serial.print(advertisedDevice.getTXPower());
Serial.print(" ");
/* Serial.print(advertisedDevice.getTXPower());
Serial.print(" "); */
digitalWrite (RelaisPin, HIGH); // Relais Einschalten
VerzoegerungZaeler = 0; // Ausschaltverzögerung zurücksetzen
advertisedDevice.getScan()->stop(); // Scanvorgang beenden