Serial.ClearReceivedBytes C# (CSharp) Method

ClearReceivedBytes() public method

Clears the received bytes. Warning: This prevents line detection and notification. To be used when no \n is expected to avoid keeping unnecessary big amount of data in memory You should normally not call this function if \n are expected.
public ClearReceivedBytes ( ) : void
return void
    public void ClearReceivedBytes()
    {
        BufferIn = "";
    }