yuva
Posts: 8
Joined: Tue Jul 22, 2008 9:55 am
Location: India

blue tools read /write

Mon Mar 09, 2009 2:31 pm

Hi,
my scenario is needs to to write the data simultaneously in that situtation I am getting the error "You must call endwrite before begin write" while after read the 1st data(response) from one bluetooth device.when i am writing the 2nd request to that particular device.

even i have created one event write callback() similar to that read callback() . in that event i have written end write method also. but it is not going to the end write method.
Please guide me. how to go in the right way.
thanks in advance

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: blue tools read /write

Mon Mar 09, 2009 4:28 pm

Look at the FindAndConnect sample, it shows how to make a propery Write operation.
Basically the important thing is not to make a BeginWrite before you have called EndWrite in the callback.

Regards,
Jonas

Return to “BlueTools”