Can't save UART output into custom key

Comments

1 comment

  • Official comment
    Ivo Clarysse

    When using the `extract:` field, use parenthesis to specify the "capturing" group, as in:

    - command: uart UART2
    send: "\r\nconfig get SER_NUM\r\n"
    extract: "(2024\\d{9})"
    extractKey: THEKEY
    timeout: 2s

    The complete regular expressions syntax supported by the PLT is documented at https://github.com/google/re2/wiki/Syntax

     

    Comment actions Permalink

Please sign in to leave a comment.