.Sinkdata Property


For the currently selected serial port (selection is made through ser.num) specifies whether the incoming data should be discarded.


Enum (yes_no, byte)

Value Range:

0- NO (default): normal data processing.

1- YES: discard incoming data.

See Also:

Sinking Data


Setting this property to 1- YES causes the serial port to automatically discard all incoming data without passing it to your application. The on_ser_data_arrival event will not be generated, reading ser.rxlen will always return zero, and so on. No data will be reaching its destination even in case of buffer redirection. Escape characters, however, will still be detected in the incoming data stream.