# Control radiator with wire pilot

**URL:** https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950
**Category:** Share Your Nodes
**Created:** [27 February 2024 10:19 UTC](https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950 "2024-02-27T10:19:11Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)
#### Post date: [6 March 2024 14:54 UTC](https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950/21 "2024-03-06T14:54:38Z")

</div>

With port 1 or 125 it's the same for the downlink

For the uplink with  
msg.payload : string[12]

"EQoAEwBVIAU="  
and with a node64 i receive this :  
06/03/2024 15:40:40[noeud: debug 122](http://bpipers.freeboxos.fr:28800/#)v3/pilotage-chauffages@ttn/devices/eui-70b3d5e75e0162f9/up : msg.payload : buffer[8]

[17, 10, 0, 19, 0, 85, 32, 5]

---

<div class="post-metadata">

### Author: ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)
#### Post date: [6 March 2024 14:57 UTC](https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950/22 "2024-03-06T14:57:34Z")

</div>

In fact, to put it simply, I'm looking to translate Base64 into text

like that : "Ym9uam91cg==" = "Bonjour" with a nodered

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [6 March 2024 15:03 UTC](https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950/23 "2024-03-06T15:03:19Z")

</div>

> [@bpi2008](#):
>
> to put it simply, I'm looking to translate Base64 into text
> 
> like that : "Ym9uam91cg==" = "Bonjour" with a nodered

A base64 node does that

Or in a function node:

```auto
msg.payload = Buffer.from(msg.payload, 'base64').toString()
return msg

```

e.g:

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

  
  

> [@bpi2008](#):
>
> For the uplink with  
> msg.payload : string[12]
> 
> "EQoAEwBVIAU="

Unfortunately, as i have said already, that data is NOT a string

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d709d1166b04a670737e5e1b704b6088f7247b3.png)

---

<div class="post-metadata">

### Author: ![bpi2008](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bpi2008](https://discourse.nodered.org/u/bpi2008)
#### Post date: [6 March 2024 15:30 UTC](https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950/24 "2024-03-06T15:30:45Z")

</div>

Ok i understand Steven. Many thanks for all.

[Previous page](https://discourse.nodered.org/t/control-radiator-with-wire-pilot/85950.md?page=1)
