on_ser_esc Event

Function:

Generated when the currently enabled escape sequence is detected in the RX data stream.

Declaration:

on_ser_esc

See Also:

Serial Settings


Details

Once the serial escape sequence is detected on a certain serial port, this port is automatically disabled (ser.enabled = 0 — NO).

When the event handler for this event is entered, the ser.num property is automatically switched to the port on which this event was generated.

Whether or not escape sequence detection is enabled and what kind of escape sequence is expected is defined by the ser.esctype property. Escape sequence detection works even when buffer redirection is set for the serial port using the ser.redir method.


on_ser_esc Event

Details