I am trying to use the n2n node that @dceejay created quite a few years ago. But it seems that the n2n input node only outputs payload. Here are some code examples:
Input to n2n output node:
but the output from a n2n input node is:
Notice it only outputs the payload entry of the object?
Is there a way to get the whole object?
No. The whole idea of the node was to send as little data as possible between nodes only when needed. It uses udp so everything has to fit in a single data packet.
Of course you can use a function node in front to generate a payload that contains the original payload plus other properties as you wish.
Is there a way to set hostip from the sending node-red instance? I have tried a few things and nothing works.
The reason being, if the node-red instance is on a VLAN, then an incorrect hostip is retrieved.