Wildcard

Top  Previous 

A wildcard is a special character that serves as a placeholder within a sequence. It may be used for Receive Sequences when parts of the received data are unspecified, e.g. measurement readings reported by a serial device. Wildcards can also be used to support parameters in a Send Sequence.

 

Two types of wildcards are available in Docklight:

Wildcard '?' : Matches exactly one arbitrary character (any ASCII code between 0 and 255)

Wildcard '#' : Matches zero or one character. This is useful for supporting variable length command arguments (e.g. a status word) in Send / Receive Sequences. See Checking for sequences with random characters or Sending commands with parameters for examples and additional information.