Missing something in how to decode an output SOLVED I hope

Sorry folks, but I’m stuck.

Recently installed “hostip” node.

Nice. It seems to do what I need. I think.

But the output:

msg : Object
object
_msgid: "b7761d7a.5ea9"
topic: ""
payload: array[2]
0: object
address: "192.168.0.86"
family: "IPv4"
1: object

So how do I get to “look at” this in a function node?
the 192.168.0.86…

that will be msg.Object.0?

(Trying myself, but I need to ask.)

Thanks.

Shall post if I resolve it in the mean time.

I was so close.

Seems msg.payload[0] works.

(maybe I need to be shown how to delete a thread if I find the answer too quickly.
Saves everyone, and me from looking more stupid than I already am.)

Gotta try to save face now and then.

I recommend you have a read of https://nodered.org/docs/user-guide/messages as it explains how to work with messages and use the Debug sidebar to identify how to address message properties.

I also recommend you bookmark that link so you can refer back to it in the future.

1 Like

Thanks much.

Yes, bookmarked.

Sorry about posting all the dumb questions, but as I think I have explained: sometimes I need to ask before my brain can process it and move on.

Though that link does look handy.