Extract a value of an array

I want to extract the value of a specific position in an array that I am receiving from Inject sent from a Raspberry Pi with the protocol OPC - UA as 'int' variable but I do not know how to do it in Node - RED

Node-RED message payload

12/04/2019, 16:47:43node: Pressure BMP180 Sensor
ns=2;i=4 : msg.payload : array[2]
0: 0
1: 97448

12/04/2019, 16:12:22[node: Pressure BMP180 Sensor]( : string[15]

"Bad data inject"

The value i want is the 97454

My configuration in the Inject is:


I need the value of the 1: position in the array

The docs have a page called "Working with messages"


That has instructions on how to get at specific data you can display with a debug node.
Using that page and either a change node or a function node you should be able to do what you want to do.

The solution for my problem i think that way is correct, it's works for my situation and i share everyone


in the msg.payload.topic[1] the 1 is the position in array i want

if anyone has a suggestion to improve the programming I am open to suggestions