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 |
messages - an optional table of or list of strings specifying the types of events this watcher should invoke a callback for. You can specify multiple types of events to watch for. Defaults to { "SSIDChange" } .
|
Returns |
- if a value is provided, returns the watcher object; otherwise returns the current values as a table of strings.
|
Notes |
- the possible values for this method are described in hs.wifi.watcher.eventTypes.
- the special string "all" specifies that all event types should be watched for.
|
Source |
extensions/wifi/watcher.m |