BitbarPlugins\Travel\AccessPointScanner::scan PHP Method

scan() public static method

use airport utility command with --scan option : Perform a wireless broadcast scan.
public static scan ( ) : string
return string raw command output
    public static function scan()
    {
        if (!self::airportProgramFound()) {
            throw new AccessPointScannerException("Airport utility command not found. Please check path.");
        }
        return shell_exec(AIRPORT_PATH . " -s");
    }
AccessPointScanner