hammerspoon2-docs
    Preparing search index...

    Namespace wifi

    Control and query Wi-Fi interfaces, scan for networks, and watch for Wi-Fi events. Built on CoreWLAN. Fields that reveal network identity — ssid, bssid, countryCode, and BSSIDs inside scan results — are only populated once Location Services is enabled and the user has authorized this app; call hs.permissions.requestLocation() first (the same gate hs.location uses). Without authorization these fields are null/omitted, not errors.

    Variables

    watcherEventTypes

    Functions

    addWatcher
    associate
    currentNetwork
    disassociate
    interfaceDetails
    interfaces
    scanNetworks
    setPower