Back

WifiScan

Hello World

Scans the surroundings for any available Wifi networks.

app.WifiScan( callback )

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();
}
    Copy     Copy All       Run      
function( ssids )