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