hammerspoon2-docs
    Preparing search index...

    Function scanNetworks

    • Scans for visible Wi-Fi networks.

      This can take a few seconds; it runs off the main thread so it does not block the app.

      Parameters

      • Optionalinterface: string | null

        the interface name as returned by interfaces(); omit for the system's default Wi-Fi interface

      Returns Promise<HSWifiNetwork[]>

      A Promise that resolves to the networks found, or rejects if the interface doesn't exist or the scan fails