Main loop - waits for Wi-Fi connection and starts Orchestrator.
(self)
| 155 | self.shared_data.headless_mode = False |
| 156 | |
| 157 | def run(self): |
| 158 | """Main loop - waits for Wi-Fi connection and starts Orchestrator.""" |
| 159 | if hasattr(self.shared_data, 'startup_delay') and self.shared_data.startup_delay > 0: |
| 160 | logger.info(f"Waiting for startup delay: {self.shared_data.startup_delay} seconds") |
| 161 | time.sleep(self.shared_data.startup_delay) |
| 162 | |
| 163 | while not self.shared_data.should_exit: |
| 164 | if not self.shared_data.manual_mode: |
| 165 | self.check_and_start_orchestrator() |
| 166 | time.sleep(10) |
| 167 | |
| 168 | def check_and_start_orchestrator(self): |
| 169 | if self.is_wifi_connected(): |
no test coverage detected