Sub Verbinden
Dim PairedDevices As Map
PairedDevices = blauerZahnDaten.GetPairedDevices
Dim GeraeteListe As List
GeraeteListe.Initialize
For i = 0 To PairedDevices.Size - 1
GeraeteListe.Add(PairedDevices.GetKeyAt(i))
Next
Dim res As Int
res = InputList(GeraeteListe, "Bitte Gerät wählen", 2) 'show list with paired devices
If res <> DialogResponse.CANCEL Then
blauerZahnDaten.Connect(PairedDevices.Get(GeraeteListe.Get(res))) 'convert the name to mac address
End If
End Sub