# Get number of a Mqtt return

**URL:** <https://discourse.nodered.org/t/get-number-of-a-mqtt-return/78445>\
**Category:** General\
**Created:** [15 May 2023 18:47 UTC](https://discourse.nodered.org/t/get-number-of-a-mqtt-return/78445 "2023-05-15T18:47:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwl](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@wwl](https://discourse.nodered.org/u/wwl)\
**Post date:** [15 May 2023 18:47 UTC](https://discourse.nodered.org/t/get-number-of-a-mqtt-return/78445/1 "2023-05-15T18:47:37Z")

</div>

Hello,  
I get the following value from an MQTT server via # from which I want to transfer the temperature in Celsius to a msg.payload and then display it later.  
How do I get the value?

This is the return of the Mqtt request in the debug Window:

fbtemp/status/temperature:0 : msg.payload : Object  
{ id: 0, tC: 26.6, tF: 79.9 }

Thanks for help

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 May 2023 19:11 UTC](https://discourse.nodered.org/t/get-number-of-a-mqtt-return/78445/2 "2023-05-15T19:11:49Z")

</div>

In a change node  
set `msg.` `payload`  
to `msg.` `payload.tC`

But you may not need to move it to payload, all depends where you want to display it.

---

<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:** [14 July 2023 20:19 UTC](https://discourse.nodered.org/t/get-number-of-a-mqtt-return/78445/4 "2023-07-14T20:19:35Z")

</div>

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