# Payload data problem

**URL:** https://discourse.nodered.org/t/payload-data-problem/35658
**Category:** General
**Created:** [10 November 2020 08:41 UTC](https://discourse.nodered.org/t/payload-data-problem/35658 "2020-11-10T08:41:56Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Blaz](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Blaz](https://discourse.nodered.org/u/Blaz)
#### Post date: [10 November 2020 08:41 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/1 "2020-11-10T08:41:56Z")

</div>

I am using a Multitech device which acts as LoraWAN server. Elsys.se sensors are connected fine and are delivering data.

Now I have the problem in node-red the payload data does not look like useful data. E. g. the CO2 sensor's payload is sometimes: payload": [5, 1]

I read about decryptors online, but those I found (also on elsys.se website) did not work. Please note I am new to Node-Red and LoraWAN, so please be kind and be a bit more elaborate, thank you.

This is the current flow for it (so far only two switches are included which sort the data and add the topics for each of the own sensors to the data, so I can act on it):

`[{"id":"b8db5fed.e5464","type":"tab","label":"Flow 1"},{"id":"94c89fef.efe0c","type":"lora in","z":"b8db5fed.e5464","name":"","datatype":"bytes","x":122.10000228881836,"y":278.00000381469727,"wires":[["ddc64b37.9c74c8","d1dbdf76.5667f"]]},{"id":"d1dbdf76.5667f","type":"switch","z":"b8db5fed.e5464","name":"devEUI CO2-Sensor","property":"deveui","propertyType":"msg","rules":[{"t":"eq","v":"a8-17-58-ff-fe-04-ab-cb","vt":"str"}],"checkall":"true","outputs":1,"x":383.1000061035156,"y":271.40000343322754,"wires":[["bca3a773.396388"]]},{"id":"ddc64b37.9c74c8","type":"switch","z":"b8db5fed.e5464","name":"devEUI Tuer-Sensor","property":"deveui","propertyType":"msg","rules":[{"t":"eq","v":"a8-17-58-ff-fe-04-88-87","vt":"str"}],"checkall":"true","outputs":1,"x":405.1000061035156,"y":332.60010528564453,"wires":[["f9f6b9cc.cd6268"]]},{"id":"bca3a773.396388","type":"change","z":"b8db5fed.e5464","name":"Set Topic Co2","rules":[{"t":"set","p":"topic","pt":"msg","to":"CO2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":595.1000061035156,"y":272.600004196167,"wires":[["8563653e.4b85b8"]]},{"id":"f9f6b9cc.cd6268","type":"change","z":"b8db5fed.e5464","name":"Set Topic Tuer","rules":[{"t":"set","p":"topic","pt":"msg","to":"Tuer","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":619.1000061035156,"y":329.600004196167,"wires":[["8563653e.4b85b8"]]},{"id":"8563653e.4b85b8","type":"debug","z":"b8db5fed.e5464","name":"","active":true,"console":"false","complete":"true","x":954.1000595092773,"y":264.00000381469727,"wires":[]}]`

---

<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: [10 November 2020 08:54 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/2 "2020-11-10T08:54:06Z")

</div>

Hi blaz & welcome to the forum.

> [@Blaz](#):
>
> Now I have the problem in node-red the payload data does not look like useful data. E. g. the CO2 sensor's payload is sometimes: payload": [5, 1]

So what value are you expecting?

Can you show a screenshot of this debug message (need to know if this payload is an array or buffer)

---

<div class="post-metadata">

### Author: ![Blaz](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Blaz](https://discourse.nodered.org/u/Blaz)
#### Post date: [10 November 2020 08:58 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/3 "2020-11-10T08:58:53Z")

</div>

I want useful data for our sensors. Here is a screenshot:

 ![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/69fa35a681f479c5e1679cf0f1130064ccbf4edf.png)

---

<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: [10 November 2020 09:00 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/4 "2020-11-10T09:00:47Z")

</div>

That _looks_ like JSON (AKA JavaScript Object Notation - AKA a JS object in string format) - so - push your msg through a JSON node (to turn that string into a JS Object) then to a debug.

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

> **[Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)**

* * *

EDIT What version of node-red is this? The format of the debug message seems strange. Is says "Object" but shows a string?

Normally, an object looks like this...

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

---

<div class="post-metadata">

### Author: ![Blaz](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Blaz](https://discourse.nodered.org/u/Blaz)
#### Post date: [10 November 2020 09:25 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/5 "2020-11-10T09:25:03Z")

</div>

It is showing v0.15.3. I tried the json way and I only get "Ignored non-object payload".

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 November 2020 09:35 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/6 "2020-11-10T09:35:32Z")

</div>

Node-red 0.15 is four years old! Support for that version will be virtually impossible.  
Hopefully you can update to a recent version, or this will be very difficult

---

<div class="post-metadata">

### Author: ![Blaz](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Blaz](https://discourse.nodered.org/u/Blaz)
#### Post date: [10 November 2020 10:37 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/7 "2020-11-10T10:37:29Z")

</div>

After installing latest firmware from 29th October Node-Red is completely gone and in help section they state it is discontinued. So I rolled back to previous version to have it again.  
So sadly it seems that Node-Red version is the latest I can have on that Multitech device ☹

---

<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: [10 November 2020 11:19 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/8 "2020-11-10T11:19:20Z")

</div>

> [@Blaz](#):
>
> So sadly it seems that Node-Red version is the latest I can have on that Multitech device

What is the exact model of this device?

Do you have SSH access, perhaps you have ROOT access where you could manually upgrade nodejs+node-red?

Lastly - must you use this device? You could replace it with a £35 Raspberry PI and be bang up to date!

---

<div class="post-metadata">

### Author: ![Blaz](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@Blaz](https://discourse.nodered.org/u/Blaz)
#### Post date: [10 November 2020 12:06 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/9 "2020-11-10T12:06:14Z")

</div>

Thank you for your fast replies, much appreciated.

The model is a MTCAP-L4E1-868-041A and I can SSH to the device, but the root password is unknown and the default passwords I found on the website are not working.

Very likely we have to replace that very outdated software with something else, likely Raspi in our company for our iOT project unless you have any other idea for this outdated software.

---

<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 January 2021 12:06 UTC](https://discourse.nodered.org/t/payload-data-problem/35658/10 "2021-01-09T12:06:15Z")

</div>

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