wifi.onConnected()event


The wifi.onConnected() event is thrown each time the computer has successfully connected to a WIFI endpoint.

Return value

This event returns no value

Example

--! luart-extensions import wifi local ui = require "ui" function wifi.onConnected() ui.info("You are now connected to "..wifi.name.." WIFI endpoint") end function wifi.onDisconnected() ui.warn("You are now disconnected from WIFI endpoint") end -- wait 10 minutes (600,000 milliseconds), then exit sleep(600000)