Exit AP mode and start WiFi search (called from web interface)
(self)
| 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") |
no test coverage detected