Hello
That is my firs post here.
So welcome everybody
I have problem with communication via Bluetooth.
I wrote small app on my phone. I connected to PC.
From PC i sending via Bleutooth from Putty terminal some data.
I have declared in Sub Globals:
Also I have:
I displaying on Label1 all incoming data from Bluetooth and I don't receiving all data.
What Am I doing wrong?
That is my firs post here.
So welcome everybody
I have problem with communication via Bluetooth.
I wrote small app on my phone. I connected to PC.
From PC i sending via Bleutooth from Putty terminal some data.
I have declared in Sub Globals:
B4X:
Dim Stream As AsyncStreams
Dim Data_receive as String
Dim Label1 as Label
Also I have:
B4X:
Sub Stream_NewData (Buffer() As Byte)
Data_receive = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
Label1.Text=Data_receive
If Data_receive.lenght=7 Then
If Data_receive.EndsWith( Chr(13)) Then
Try
' Do something
Catch
End Try
End If
Data_receive =""
End If
End Sub
I displaying on Label1 all incoming data from Bluetooth and I don't receiving all data.
What Am I doing wrong?