.escchar Property

Function:

For the selected serial port (selection is made through ser.num), sets/retrieves the ASCII code of the escape character used for type 1 or type 2 serial escape sequences.

Type:

Byte

Value Range:

0-255, default = 1 (SOH character)

See Also:

UART Mode, Serial Settings


Details

Which escape sequence is enabled is defined by the ser.esctype property. This property is irrelevant when ser.esctype = 0 — PL_SER_ET_DISABLED or when the serial port is in the Wiegand or clock/data mode (ser.mode = 1 — PL_SER_MODE_WIEGAND or ser.mode = 2 — PL_SER_MODE_CLOCKDATA) — serial escape sequences are only recognized in the UART mode.


.escchar Property

Details