Pages: [1]   Go Down
Author Topic: Virtual Wire flush  (Read 905 times)
0 Members and 1 Guest are viewing this topic.
Sweden, Malmö
Offline Offline
Full Member
***
Karma: 2
Posts: 200
Rooky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 48993
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Sweden, Malmö
Offline Offline
Full Member
***
Karma: 2
Posts: 200
Rooky
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: August 12, 2010, 03:18:13 am by HULK » Logged

Pages: [1]   Go Up
Jump to: