2024-09-2900 Neuer Kennungs Sender
This commit is contained in:
parent
dfbf5b62ed
commit
e486eae03f
9
Beacon_scaner.code-workspace
Normal file
9
Beacon_scaner.code-workspace
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"name": "Beacon_scaner",
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
|
@ -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\"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user