diff --git a/Beacon_scaner.code-workspace b/Beacon_scaner.code-workspace new file mode 100644 index 0000000..df02298 --- /dev/null +++ b/Beacon_scaner.code-workspace @@ -0,0 +1,9 @@ +{ + "folders": [ + { + "name": "Beacon_scaner", + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index afc78ce..2491ec8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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\" diff --git a/src/main.cpp b/src/main.cpp index 32df15c..941a5dc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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