From ec0e18d040c2bed698fb2217039a6d3b9a4dac3b Mon Sep 17 00:00:00 2001 From: torlando-tech Date: Mon, 3 Nov 2025 23:48:33 -0500 Subject: [PATCH] scan as central --- src/RNS/Interfaces/BLEInterface.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/RNS/Interfaces/BLEInterface.py b/src/RNS/Interfaces/BLEInterface.py index 58395d0..e618f56 100644 --- a/src/RNS/Interfaces/BLEInterface.py +++ b/src/RNS/Interfaces/BLEInterface.py @@ -429,6 +429,14 @@ class BLEInterface(Interface): RNS.log(f"{self} failed to start driver: {e}", RNS.LOG_ERROR) return + # If central mode is enabled, start scanning for peers + if self.enable_central: + try: + self.driver.start_scanning() + RNS.log(f"{self} started scanning for peers", RNS.LOG_INFO) + except Exception as e: + RNS.log(f"{self} failed to start scanning: {e}", RNS.LOG_ERROR) + # Bug #13 workaround: Clear stale BLE paths from Transport.path_table # Reticulum core bug: Paths loaded from storage may have timestamp=0,