Serial data string.equals wild cards?

You could use

if (command.indexOf("CMD") > -1) {
  // extract the value and what follows
}

And then extract the value as you like.

1 Like