Bluetooth SPP commiunication

87 views
Skip to first unread message

ssvplus

unread,
Sep 6, 2011, 12:56:42 PM9/6/11
to bluecov...@googlegroups.com
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
 

Amit Kumar Mondal

unread,
Aug 18, 2015, 1:12:42 PM8/18/15
to bluecove-users
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?
Reply all
Reply to author
Forward
0 new messages