UART InteractionΒΆ

- command: uartCfg UART1 9600 8N1
- command: uartCfg UART0 tp

Example: extract ICCID from cellular modem, storing in the ICCID key.

- uartcmd: uart UART0
  expect: "+CCID:"
  extract: "CCID: (\\d{20})\r\n"
  extractKey: ICCID
  send: "AT+ICCID\r\n"

Example:

- command: uartExpect UART0 Pressed
- command: operator "Press button"
- command: uartAwait UART0 1

Example:

- command: uartExpect UART0 Pressed
- command: operator "Press button"
- command: uartAwait UART0 1
- command: uartReadTimeout UART0 1 "AT"

Commands