.Sinkdata Property

Function:

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

Type:

Enum (yes_no, byte)

Value Range:

0- NO (default): normal data processing.

1- YES: discard incoming data.

See Also:

Sinking Data

Details

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.