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/internal.m |
| Signature | hs.wifi.availableNetworks([interface]) -> table |
|---|---|
| Type | Function |
| Description | Gets a list of available WiFi networks |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | extensions/wifi/internal.m |
| Signature | hs.wifi.currentNetwork([interface]) -> string or nil |
|---|---|
| Type | Function |
| Description | Gets the name of the current WiFi network |
| Parameters |
|
| Returns |
|
| Source | extensions/wifi/internal.m |
| Signature | hs.wifi.disassociate([interface]) -> nil |
|---|---|
| Type | Function |
| Description | Disconnect the interface from its current network. |
| Parameters |
|
| Returns |
|
| Source | extensions/wifi/internal.m |
| Signature | hs.wifi.interfaceDetails([interface]) -> table |
|---|---|
| Type | Function |
| Description | Returns a table containing details about the wireless interface. |
| Parameters |
|
| Returns |
|
| Source | extensions/wifi/internal.m |
| 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/internal.m |
| Signature | hs.wifi.setPower(state, [interface]) -> boolean |
|---|---|
| Type | Function |
| Description | Turns a wifi interface on or off |
| Parameters |
|
| Returns |
|
| Source | extensions/wifi/internal.m |
| 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/internal.m |
| 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/internal.m |