info('Testing Traccar API connection...'); try { // Test connection if ($traccarService->testConnection()) { $this->info('✅ Connection successful!'); // Get server info $serverInfo = $traccarService->getServerInfo(); $this->info('Server Version: ' . ($serverInfo['version'] ?? 'Unknown')); // Get devices $devices = $traccarService->getDevices(); $this->info('Total devices: ' . count($devices)); // Get positions $positions = $traccarService->getPositions(); $this->info('Total positions: ' . count($positions)); } else { $this->error('❌ Connection failed!'); } } catch (\Exception $e) { $this->error('❌ Error: ' . $e->getMessage()); } } }