Android Question Bluetooth example t (CRLF) his is a test

Beja

Expert
Licensed User
Longtime User
Hi all,
did anyone experienced this or only I.
Running Bluetooth admin example, sending text from device to PC is ok.
but when I sent "this is a test" from PC back to device, it was displayed like this:

t
his is a test.
any explanation?

BUT:
When I made a space before the sentence:
this is a test, the result was normal
 

Beja

Expert
Licensed User
Longtime User
no prefix..
Now I added a space and sent " this is a test" and the result was
:
: this is a test.

So the space resulted in a CRLF then the complete sentence without a space. This means to me
that the incoming data is coming like this:
1- the first character whether it is a letter or a space
2- CRLF
3- the rest of the string

example 1:
I send "testing". the result is:
:t
:esting

example 2:
I send (Space)testing. the result is:
:(Space)
:testing
 
Upvote 0
Top