MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _propagate_active_network

Method _propagate_active_network

wifi_manager.py:343–348  ·  view source on GitHub ↗
(self, ssid)

Source from the content-addressed store, hash-verified

341 final_networks = sorted(deduped.values(), key=lambda x: x.get('signal', 0), reverse=True)
342 logger_target.info(f"iwlist scan discovered {len(final_networks)} networks on {interface}")
343 return final_networks
344
345 def _set_current_ssid(self, ssid):
346 """Update current SSID and propagate to storage with debounce.
347
348 First-time establishment (no active network yet) propagates immediately
349 so the per-network DB switches before the next scan cycle. Subsequent
350 *changes* between known SSIDs are debounced: a transient misread of
351 the SSID (common during roaming on Pi Zero) used to trip

Callers 1

_set_current_ssidMethod · 0.95

Calls 2

set_active_networkMethod · 0.80
warningMethod · 0.80

Tested by

no test coverage detected