Discussion:
Bluetooth SPP commiunication
ssvplus
2011-09-06 16:56:42 UTC
Permalink
Hi everyone,

I'm new to this group
I'm developing a java programm that use btspp for commiunication
can anyone tell me how to read data from btspp connection
I use the following method (not the exact code) to read from btspp
connection

while(true){

byte[] bfr = new byte[1000];
inputstrm.read(bfr);

}

when I use this same data is repeatedly read (when I am writing nothing to
the btspp connection, inputstrm.read(bfr) seams to be reading the last send
data)
I cant synchronize the sending data and reading
can anyone suggest me correct way to read from btspp connection

thanks
--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/bluecove-users/-/iO673jFgeb0J.
To post to this group, send email to bluecove-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to bluecove-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/bluecove-users?hl=en.
Amit Kumar Mondal
2015-08-18 17:11:34 UTC
Permalink
Hi,

I know it's an old post. I just want to know if you have found any solution
to this problem. If so, would you please help me?
Post by ssvplus
Hi everyone,
I'm new to this group
I'm developing a java programm that use btspp for commiunication
can anyone tell me how to read data from btspp connection
I use the following method (not the exact code) to read from btspp
connection
while(true){
byte[] bfr = new byte[1000];
inputstrm.read(bfr);
}
when I use this same data is repeatedly read (when I am writing nothing to
the btspp connection, inputstrm.read(bfr) seams to be reading the last send
data)
I cant synchronize the sending data and reading
can anyone suggest me correct way to read from btspp connection
thanks
--
You received this message because you are subscribed to the Google Groups "bluecove-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-users+***@googlegroups.com.
To post to this group, send email to bluecove-***@googlegroups.com.
Visit this group at http://groups.google.com/group/bluecove-users.
For more options, visit https://groups.google.com/d/optout.
Loading...