From 7af5e2df649bde51ec9f8b1b794b80545a85958b Mon Sep 17 00:00:00 2001 From: torlando-tech Date: Tue, 4 Nov 2025 23:36:59 -0500 Subject: [PATCH] re-add service_uuid filter --- src/RNS/Interfaces/BLEInterface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RNS/Interfaces/BLEInterface.py b/src/RNS/Interfaces/BLEInterface.py index f313819..f37dacb 100644 --- a/src/RNS/Interfaces/BLEInterface.py +++ b/src/RNS/Interfaces/BLEInterface.py @@ -618,6 +618,11 @@ class BLEInterface(Interface): This callback is invoked by the driver when a device is discovered during scanning. We use peer scoring and connection logic to decide whether to connect. """ + # Primary: Match by service UUID (standard BLE discovery) + if self.service_uuid not in device.service_uuids: + RNS.log(f"{self} device {device.name if device.name else device.address} does not advertise Reticulum service UUID, skipping", RNS.LOG_EXTREME) + return + # Update or create discovered peer entry if device.address not in self.discovered_peers: self.discovered_peers[device.address] = DiscoveredPeer(