You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've already read the documentation and the examples about pattern matching.
But I still have some difficulties to understand how should I approach a very simple scenario.
The incoming messages have the following addresses:
/<group>/<command>/<index>
or
/<command>/<index>
examples:
/servo/set/1
/servo/move/2
/set/1
...
So the same <command> items may be present with or without the <group>.
I want to (partially) match until the <index> item, but starting from the root.
I've already read the documentation and the examples about pattern matching.
But I still have some difficulties to understand how should I approach a very simple scenario.
The incoming messages have the following addresses:
or
examples:
So the same
<command>
items may be present with or without the<group>
.I want to (partially) match until the
<index>
item, but starting from the root.I did something like this:
Then I retrieve the
<index>
in this way:Well, it seems it works correctly, but I want to be sure this is the correct way to approach such a situation.
The text was updated successfully, but these errors were encountered: