Go Down

Topic: Virtual Wire flush (Read 1 time) previous topic - next topic

HULK


I am using the Virtual Wire library and am trying to flush the buffer.
Is it possible? What command to use?

PaulS

I can't answer that question, but I have one for you. Why do you need to flush the buffer? You obviously asked the device on the other end of the wire to send you data that you now want to throw away in random amounts. On the surface, this does not seem like a reasonable thing to do.

HULK

#2
Aug 12, 2010, 10:13 am Last Edit: Aug 12, 2010, 10:18 am by HULK Reason: 1
Thank for your fast reply Paul.
Well, let me try to explain. I have a server that sends out default data every second (looping same message) to the client but at some point the client asks for other data. It takes about 10 seconds for the server to extraxt the data and send it out to the client. During that time the buffer in the client will present old default data that is not wanted at that point.
Data is presented in a LCD.

I do manage to get around my issue but would be more easy if i could flush the buffer.

Go Up