# Serial message structure

**URL:** <https://discourse.nodered.org/t/serial-message-structure/65648>\
**Category:** General\
**Tags:** function-node\
**Created:** [26 July 2022 16:54 UTC](https://discourse.nodered.org/t/serial-message-structure/65648 "2022-07-26T16:54:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RemyH](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RemyH](https://discourse.nodered.org/u/RemyH)\
**Post date:** [26 July 2022 16:54 UTC](https://discourse.nodered.org/t/serial-message-structure/65648/1 "2022-07-26T16:54:20Z")

</div>

Bonjour

If someone can tell me what I'm missing to have the same format of the message that I want to send by an rf433 frame  
the first is OK and the second is NOK  
thanks in advance  
 ![Capture d’écran du 2022-07-26 18-52-49](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e84e8aeda9639f20464d878e7e3b1dada201a8fa.png)

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [26 July 2022 17:11 UTC](https://discourse.nodered.org/t/serial-message-structure/65648/2 "2022-07-26T17:11:51Z")

</div>

Hi,

It looks like there is a CR/LF at the end of the first message that is missing from the second one.

You can add / control the contents of a STRING using the 'node-red-contrib-string' node.  
This can be installed from the 'Manage Palette' option.

Cheers,

Paul

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [26 July 2022 17:24 UTC](https://discourse.nodered.org/t/serial-message-structure/65648/3 "2022-07-26T17:24:24Z")

</div>

Just try adding

```auto
/n

```

to the end of the second string.

---

<div class="post-metadata">

**Author:** ![RemyH](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RemyH](https://discourse.nodered.org/u/RemyH)\
**Post date:** [26 July 2022 18:04 UTC](https://discourse.nodered.org/t/serial-message-structure/65648/4 "2022-07-26T18:04:14Z")

</div>

I ghayne

I ad: /n but now  
 ![Capture d’écran du 2022-07-26 20-02-06](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/63f154c6d8b7aa3f5216cb438afaf9e62b28a115.png)

---

<div class="post-metadata">

**Author:** ![RemyH](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RemyH](https://discourse.nodered.org/u/RemyH)\
**Post date:** [26 July 2022 18:24 UTC](https://discourse.nodered.org/t/serial-message-structure/65648/5 "2022-07-26T18:24:24Z")

</div>

I ghayne and paulkeates

I installed node-red-contrib-string and put \r\n and it's OK now  
thank you for everything  
Remy

---

<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:** [9 August 2022 18:25 UTC](https://discourse.nodered.org/t/serial-message-structure/65648/6 "2022-08-09T18:25:26Z")

</div>

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