We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c94fe1c commit 06e2ad4Copy full SHA for 06e2ad4
main/ZgatewayBT.ino
@@ -623,6 +623,10 @@ class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
623
BLEdata.set("id", (char*)mac_adress.c_str());
624
Log.notice(F("Device detected: %s" CR), (char*)mac_adress.c_str());
625
BLEdevice* device = getDeviceByMac(BLEdata["id"].as<const char*>());
626
+ if (device->connect) {
627
+ Log.notice(F("Filtered connectable device" CR));
628
+ return;
629
+ }
630
631
if ((!oneWhite || isWhite(device)) && !isBlack(device)) { //if not black listed mac we go AND if we have no white mac or this mac is white we go out
632
if (advertisedDevice->haveName())
0 commit comments