How to build a Flow that can be toggled between Probe and TCP mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-21 4:17 AM
I would like to use the toggle UI element to switch between two paths: probe send and receive, and TCP send and receive.
The rest of the pipeline should remain the same.
Solved! Go to Solution.
- Labels:
-
ST-Link
-
STM32CubeMonitor
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-21 8:58 AM
Hello
Do you mean one sub flow with STLink probe, and another using a TCP node ?
It is possible to use some "switch" nodes to connect one path or the other one :
- Add the toggle button, and store the value "probe" or"TCP" in a the flow context (with a "change" node : set flow.myswitch to msg.payload)
- Add a "switch" node on probe path, with the condition flow.myswitch== probe
- Add another switch on TCP path, with the condition flow.myswitch==TCP
When the toggle is moved, the flow variable is set, and will activate one path or the other.
Here is an example :
Let us know if this is answering your question.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-21 8:58 AM
Hello
Do you mean one sub flow with STLink probe, and another using a TCP node ?
It is possible to use some "switch" nodes to connect one path or the other one :
- Add the toggle button, and store the value "probe" or"TCP" in a the flow context (with a "change" node : set flow.myswitch to msg.payload)
- Add a "switch" node on probe path, with the condition flow.myswitch== probe
- Add another switch on TCP path, with the condition flow.myswitch==TCP
When the toggle is moved, the flow variable is set, and will activate one path or the other.
Here is an example :
Let us know if this is answering your question.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-21 9:04 AM
Thank you for your answer, this should work.
That being said, judging from the Icon, the "switch" node looks like it switches between two paths, which would be a great function to have.
