There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
How to clear(flush) the data on Stream
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.