# Switch between multiple nodes

**URL:** <https://discourse.nodered.org/t/switch-between-multiple-nodes/14261>\
**Category:** General\
**Created:** [12 August 2019 20:18 UTC](https://discourse.nodered.org/t/switch-between-multiple-nodes/14261 "2019-08-12T20:18:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoyo89](https://avatars.discourse-cdn.com/v4/letter/y/f04885/32.png) [@yoyo89](https://discourse.nodered.org/u/yoyo89)\
**Post date:** [12 August 2019 20:18 UTC](https://discourse.nodered.org/t/switch-between-multiple-nodes/14261/1 "2019-08-12T20:18:53Z")

</div>

Hello, i want to create a flow where i can switch between multiple nodes that goes to a same process

for example i want one node(microcontroller) to send data to the cloud and i have the ability to turn it off and make the other node send data .

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 August 2019 20:39 UTC](https://discourse.nodered.org/t/switch-between-multiple-nodes/14261/2 "2019-08-12T20:39:17Z")

</div>

Please elaborate as this can mean many things.

If both your microcontrollers publish on seperate topics with mqtt you can use a switch node.

---

<div class="post-metadata">

**Author:** ![yoyo89](https://avatars.discourse-cdn.com/v4/letter/y/f04885/32.png) [@yoyo89](https://discourse.nodered.org/u/yoyo89)\
**Post date:** [12 August 2019 20:52 UTC](https://discourse.nodered.org/t/switch-between-multiple-nodes/14261/3 "2019-08-12T20:52:20Z")

</div>

yeah they send on separate mqtt . can i use simple gate to toggle on and off different nodes?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 August 2019 20:55 UTC](https://discourse.nodered.org/t/switch-between-multiple-nodes/14261/4 "2019-08-12T20:55:01Z")

</div>

If I understand what you are asking you should be able to use node-red-contrib-simple-gate for this.
