Hello
I tried the "Serial library" and it does list the paired bluetooth but
it does not tell me if it's connected.
I need to know if the bluetooth is connected before trying to connect.
Thank You:
Sub LookForBlue()
Dim PairedDevices As Map
Dim l As List
Dim res As Int
PairedDevices = Myblue.GetPairedDevices
l.Initialize
For i = 0 To PairedDevices.Size - 1
l.Add(PairedDevices.GetKeyAt(i)) 'add the friendly name to the list
Next
res = InputList(l, "Choose device", -1) 'show list with paired devices
If res <> DialogResponse.CANCEL Then
Myblue.Connect(PairedDevices.Get(l.Get(res)))
End If
Msgbox(Connected,"Blue")
End Sub
--------------------------------------
Sub MyBlue_Connected (Success As Boolean)
If Success Then
connected = True
Else
connected = False
End If
End Sub