Use DiscoverBtDevices to search for other bluetooth devices which are not paired with the current device.
Example - Discover Bluetooth Devices
function OnStart()
{
app.SetBluetoothEnabled(true);
lay = app.CreateLayout( "linear", "VCenter,FillXY" );
lst = app.CreateList( "", 0.8, 0.4 );
lst.SetBackColor("#11ffffff");
lay.AddChild( lst );
app.AddLayout( lay );
app.ShowProgress();
app.DiscoverBtDevices( "", OnFound, OnComplete );
}
function OnFound( name, address)
{
lst.AddItem( name, address );
}
function OnComplete()
{
app.HideProgress();
}
def OnStart():
app.SetBluetoothEnabled(true)
lay = app.CreateLayout( "linear", "VCenter,FillXY" )
lst = app.CreateList( "", 0.8, 0.4 )
lst.SetBackColor("#11ffffff")
lay.AddChild( lst )
app.AddLayout( lay )
app.ShowProgress()
app.DiscoverBtDevices( "", OnFound, OnComplete )
def OnFound( name, address):
lst.AddItem( name, address )
def OnComplete():
app.HideProgress()