Inspect WiFi networks
Signature | hs.wifi.associate(network, passphrase[, interface]) -> boolean |
---|---|
Type | Function |
Description | Connect the interface to a wireless network |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/wifi/libwifi.m line 131 |
Signature | hs.wifi.availableNetworks([interface]) -> table |
---|---|
Type | Function |
Description | Gets a list of available WiFi networks |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/wifi/libwifi.m line 189 |
Signature | hs.wifi.currentNetwork([interface]) -> string or nil |
---|---|
Type | Function |
Description | Gets the name of the current WiFi network |
Parameters |
|
Returns |
|
Source | extensions/wifi/libwifi.m line 300 |
Signature | hs.wifi.disassociate([interface]) -> nil |
---|---|
Type | Function |
Description | Disconnect the interface from its current network. |
Parameters |
|
Returns |
|
Source | extensions/wifi/libwifi.m line 110 |
Signature | hs.wifi.interfaceDetails([interface]) -> table |
---|---|
Type | Function |
Description | Returns a table containing details about the wireless interface. |
Parameters |
|
Returns |
|
Source | extensions/wifi/libwifi.m line 326 |
Signature | hs.wifi.interfaces() -> table |
---|---|
Type | Function |
Description | Returns a list of interface names for WLAN devices attached to the system |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/wifi/libwifi.m line 170 |
Signature | hs.wifi.setPower(state, [interface]) -> boolean |
---|---|
Type | Function |
Description | Turns a wifi interface on or off |
Parameters |
|
Returns |
|
Source | extensions/wifi/libwifi.m line 75 |
Signature | hs.wifi.backgroundScan(fn, [interface]) -> scanObject |
---|---|
Type | Constructor |
Description | Perform a scan for available wifi networks in the background (non-blocking) |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/wifi/libwifi.m line 226 |
Signature | hs.wifi:isDone() -> boolean |
---|---|
Type | Method |
Description | Returns whether or not a scan object has completed its scan for wireless networks. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/wifi/libwifi.m line 387 |