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

Method exit_ap_mode_from_web

wifi_manager.py:1174–1178  ·  view source on GitHub ↗

Exit AP mode and start WiFi search (called from web interface)

(self)

Source from the content-addressed store, hash-verified

1172 self.logger.info(f"Endless Loop: WiFi validation completed - {self.wifi_validation_retries - validation_failures}/{self.wifi_validation_retries} passed")
1173
1174 def _strong_wifi_presence_check(self):
1175 """Perform a strong connectivity check (ping external host) to verify real internet access"""
1176 try:
1177 self.logger.debug("Performing strong WiFi presence check (ping 8.8.8.8)")
1178 result = subprocess.run(['ping', '-c', '2', '-W', '3', '8.8.8.8'],
1179 capture_output=True, timeout=8)
1180 if result.returncode == 0:
1181 self.logger.info("Strong check: Successfully pinged 8.8.8.8 - WiFi connected")

Callers 2

exit_ap_modeFunction · 0.80
exit_wifi_ap_modeFunction · 0.80

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected