The event types this watcher will invoke its callback for. Defaults to
["ssidChange"]. Unrecognized values are ignored with a console warning;
see hs.wifi.watcherEventTypes for the list of valid values. Can be
changed while the watcher is running.
ReadonlyidentifierThe unique identifier assigned to this watcher.
Stops the watcher and releases all resources. Called automatically during shutdown.
Sets the callback function invoked when a watched Wi-Fi event occurs.
Called with the event name and an info dictionary; see type documentation for event names and info keys.
self, for chaining
A Wi-Fi event watcher that monitors changes to a Wi-Fi interface. Create via
hs.wifi.addWatcher(). Set a callback withsetCallback(), then callstart()to begin receiving events. By default only"ssidChange"is watched; use theeventsproperty to watch other event types."ssidChange"interface: string"bssidChange"interface: string"countryCodeChange"interface: string"linkChange"interface: string"linkQualityChange"interface: string,rssi: number,transmitRate: number"modeChange"interface: string"powerChange"interface: string"scanCacheUpdated"interface: string