wifi.connected
The wifi.connected property checks if the computer is connected to a wireless network, returning a boolean value.
Example
--! luart-extensions
import wifi
if wifi.connected then
print("You are connected to the '"..wifi.name.."' wireless network")
else
print("You are not connected to a wireless network")
end