Scans the surroundings for any available Wifi networks.
Example - Conect to DS WiFi AP
function OnStart()
{
lay = app.CreateLayout( "linear", "VCenter,FillXY" );
lst = app.CreateList( "", 1, 1 );
lay.AddChild( lst );
app.AddLayout( lay );
app.ShowProgress();
app.WifiScan( OnWifi );
}
function OnWifi( ssid )
{
lst.SetList( ssid, "\\|" )
app.HideProgress();
}
from native import app
def OnStart():
global lst
lay = app.CreateLayout("linear", "VCenter,FillXY")
lst = app.CreateList("", 1, 1)
lay.AddChild(lst)
app.AddLayout(lay)
app.ShowProgress()
app.WifiScan(OnWifi)
def OnWifi(ssid):
lst.SetList(ssid, "\\|")
app.HideProgress()