#hs.wifi.watcher
Watch for changes to the associated wifi network
#API Overview
Constants - Useful values which cannot be changed
Constructors - API calls which return an object, typically one that offers API methods
Methods - API calls which can only be made on an object returned by a constructor
#API Documentation
#Constants
Signature | hs.wifi.watcher.eventTypes[] |
Type | Constant |
Description | A table containing the possible event types that this watcher can monitor for. |
Notes |
|
Source | extensions/wifi/libwifi_watcher.m line 364 |
#Constructors
Signature | hs.wifi.watcher.new(fn) -> watcher |
Type | Constructor |
Description | Creates a new watcher for WiFi network events |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | extensions/wifi/libwifi_watcher.m line 215 |
#Methods
Signature | hs.wifi.watcher:start() -> watcher |
Type | Method |
Description | Starts the SSID watcher |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | extensions/wifi/libwifi_watcher.m line 282 |
Signature | hs.wifi.watcher:stop() -> watcher |
Type | Method |
Description | Stops the SSID watcher |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | extensions/wifi/libwifi_watcher.m line 300 |
Signature | hs.wifi.watcher:watchingFor([messages]) -> watcher | current-value |
Type | Method |
Description | Get or set the specific types of wifi events to generate a callback for with this watcher. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | extensions/wifi/libwifi_watcher.m line 318 |