| Algorithm 1. The function for capturing all APs within range. |
| def capture_aps(self, interface : str, proc_timeout=2) -> str: |
| “““Captures all access points within range |
| Parameters |
| ---------- |
| interface : str |
| Interface to capture packets on |
| proc_timeout : int, optional |
| Amount of seconds to run the capture, by default 2 |
| Returns |
| ------- |
| str |
| filepath to xml file containing AP data |
| “““ |
| self.logger.debug(’Capturing all APs...’) |
| fsuffix = [] |
| flags = { |
| ’--write-interval’: ’1’, |
| ’--output-format’: ’netxml’} |
| return self._capture(interface, fsuffix, flags, proc_timeout) |