B4R Question Flushing or handling serial incoming chars

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody
I'd like to flush incoming bytes from serial port. I have a long running task and incoming bytes will queue on their ports. Is it possible to check the incoming stream or to clear it while executing sub?

Thank you!

Mauro Zanin
 

tigrot

Well-Known Member
Licensed User
Longtime User
Hi Erel
Since I'm in a loop, is the execution interrupted and event served? According to my tests this doesn't happen till I return from the sub.
I need to trasfer log files from internal SD to an USB memory. The copy is quite long and I need to go on with housekeeping.
I'll do the copy in an timer, so every block is copied and between blocks' copy there is time to handle the incoming streams.
 
Upvote 0
Top