You can read a property value and scan for a part of it to be stored in the variable.
Browse the desired node and property.
You can use these specifiers for scanning:
- %s - String of characters. Any number of non-whitespace characters, stopping at the first whitespace character found.
- %3s - The next 3 charaters. Exactly 3 of any character. Replace the number as desired.
- %[characters] - Defined Characterset. Any number of the characters specified between the brackets.
- %[^characters] - Negated characterset. Any number of characters none of them specified as characters between the brackets.
- %* - Ignored part - Use %* instead of % means to drop and ignore the found part.
- "string" - String part without leading % sign meant to search for the literal string.
Examples:
- The %*6c%s pattern reads and ignores the first 6 characters, then gives the remaining string as a result.
For example if the value is "38.5C 42.3C" then the result will be "42.3C".
- The LampTemp=%[0-9] pattern reads "LampTemp=" literally, then gives the part which are number characters.
For example if the value is "LampTemp=190C" then the result will be "190C"
- The %*[^';'];I%s pattern reads and ignores any characters which are not ";" until the first ';' is found. Then reads "I" literally, then gives the remaining string as a result.