Hi,
i want to read from FB155 Bluetoothmodule (Hardware) with android on my galaxy SIII. The module sends every second as string. I don't know which connection type form serial i should use. I've tried all examples on this forum (.zip) but always no connection is possible. The same problem with my galaxy tab 2 10.1. I'm using basic4android v2.25. Better to use asynstream? I think it is a SPP connection.?
Maybe someone can help me. thank you
No connection with this:
i want to read from FB155 Bluetoothmodule (Hardware) with android on my galaxy SIII. The module sends every second as string. I don't know which connection type form serial i should use. I've tried all examples on this forum (.zip) but always no connection is possible. The same problem with my galaxy tab 2 10.1. I'm using basic4android v2.25. Better to use asynstream? I think it is a SPP connection.?
Maybe someone can help me. thank you
No connection with this:
B4X:
[ code ] Sub Admin_DiscoveryFinished
ProgressDialogHide
If foundDevices.Size = 0 Then
ToastMessageShow("No device found.", True)
Else
Dim l As List
l.Initialize
For i = 0 To foundDevices.Size - 1
Dim nm As NameAndMac
nm = foundDevices.Get(i)
'ListView1.AddSingleLine(nm.Name)
l.Add(nm.Name)
Next
Dim res As Int
res = InputList(l, "Choose device to connect", -1)
If res <> DialogResponse.CANCEL Then
connectedDevice = foundDevices.Get(res)
ProgressDialogShow("Trying to connect to: " & connectedDevice.Name & " (" & connectedDevice.Mac & ")")
'serial1.Connect(connectedDevice.Mac)
'serial1.ConnectInsecure(admin,connectedDevice.Mac ,CInt(ListView1))
'serial1.Connect3(connectedDevice.Mac,CInt(ListVie w1))
serial1.ConnectInsecure(admin,connectedDevice.Mac, 1)
End If
End If
End Sub
Edit/Delete Message
Last edited: