Skip to main content
. 2023 Jan 9;23(2):733. doi: 10.3390/s23020733
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)