SRF Receiver!

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 746
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 640 times
Been thanked: 171 times

Re: SRF Receiver!

Post by jgu1 »

Hi!

The component work fine ;) I have a project where I send and receive some string and number. Sometime when I send a new data it is the same as past even it is new data, I think it is because the old data in the Buffer still is there.

How can I delete or clear the Buffer (I use arduino) I have seach around and find this Command: Serial.flush() and try to put it in a C kode box in FC, but get error when compiling. I know I have to add something in the Complemetery code in Other options, but what? Please any guide :D Or other way to clear the buffer.

Maybe a Component macro for Flush for Pic and arduino, if this is possible

Thank´s in advance

Jorgen

Post Reply