# Convert UDP to initial value

**URL:** <https://discourse.nodered.org/t/convert-udp-to-initial-value/29758>\
**Category:** General\
**Created:** [9 July 2020 05:52 UTC](https://discourse.nodered.org/t/convert-udp-to-initial-value/29758 "2020-07-09T05:52:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abedgarr](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abedgarr](https://discourse.nodered.org/u/abedgarr)\
**Post date:** [9 July 2020 05:52 UTC](https://discourse.nodered.org/t/convert-udp-to-initial-value/29758/1 "2020-07-09T05:52:50Z")

</div>

Good day, I have had little use with node red, currently I am using it to send and receive simulink values to node red.  
My query is, I am sending a constant with number 1, from simulink to the UDP output, how could I convert it to my real value which is 1?  
Sorry I don't have much knowledge about bytes and node js language?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a3306caea36d7be043f724a5f617cd07dc88e003.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/5581a984f69127ea97e45b1664ff50fc7745e8eb.png)

---

<div class="post-metadata">

**Author:** ![nlecaude](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nlecaude/32/25_2.png) [@nlecaude](https://discourse.nodered.org/u/nlecaude)\
**Post date:** [9 July 2020 05:57 UTC](https://discourse.nodered.org/t/convert-udp-to-initial-value/29758/2 "2020-07-09T05:57:28Z")

</div>

Do you have more information on the packing algorithm that is used?
