1
Vote

How to clear(flush) the data on Stream

description

Dear All

I am developing an application, it deals with a hardware.

Connectivity is happening i am able to send and receive commands to the hardware.

Problem is sometimes my hardware gives acknowledgement and sometimes not, but i need to read when its gives acknowledgement.

if i dint read this acknowledgement at previously mentioned instant, it is affecting in me in my next read by appending with new data.

i am using Stream.Flush() not working for me, i want help to read that inconsistent data or i need to clear(Flush) the data before new read.

Regards
Vinod

comments