# Node Red Receive UDP messages

**URL:** <https://discourse.nodered.org/t/node-red-receive-udp-messages/35823>\
**Category:** General\
**Created:** [12 November 2020 17:43 UTC](https://discourse.nodered.org/t/node-red-receive-udp-messages/35823 "2020-11-12T17:43:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vantech](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@vantech](https://discourse.nodered.org/u/vantech)\
**Post date:** [12 November 2020 17:43 UTC](https://discourse.nodered.org/t/node-red-receive-udp-messages/35823/1 "2020-11-12T17:43:44Z")

</div>

Hi,

I am new to using node red and have it setup with a 3rd party controller which sends UDP commands to node red, this part is working. I have used a "UDP" node, and there is connectivity (so when i send data from the 3rd party controller, the connection is visible in node red).

What i am struggling to do is extract the UDP message data to then trigger different functions. What i am doing is sending Base64 (ASCII) strings from the 3rd party controller, around 100 different messages, and i need to trigger a different function/output for each UDP message that is received.

Could anyone lend a hand? I have got this far!

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/1/b1e6df6b8f12b5ffc758155bbaae708befc3d00f.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [12 November 2020 17:52 UTC](https://discourse.nodered.org/t/node-red-receive-udp-messages/35823/2 "2020-11-12T17:52:13Z")

</div>

Well the [node-red-node-base64 node](https://flows.nodered.org/node/node-red-node-base64) would be a good start...  
after that add a debug node and paste the result here - or examples of the sort of messages you are getting - and what they need to be turned into...  
Are they parseable into chunk that can then be used to affect the controls ? or just 64 different messages ? (A **very** large Switch node....)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 January 2021 17:52 UTC](https://discourse.nodered.org/t/node-red-receive-udp-messages/35823/3 "2021-01-11T17:52:22Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
