I have written a function in a function node which I want to test using a numeric node by changing the input values. I have to emulate the message you can see in the screenshot below. Only value msg.payload.power is of interest.
Is it possible to configure the numeric node directly accordingly?
Or do I have to add a function which creates value msg.payload.power based on the input of the numeric node?
If so, how in detail this can be done?
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.
Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.
Note however, for functions, you access this via the msg object. So in your case msg.payload.power
It is difficult to say as when I use the keys, they are not shown.
Just to the left of the 1 key is a key (usually) which has a ~ and a ' (nearly) on it.
If it is one line you do this this is an example of one line
which from the keyboard's point of view is: (using the wrong key only to show you)
'this is an example of one line'
But it isn't the key to the right of the ; key. It is the key to the left of the 1 key.
If you want to post multiple lines (or a long line of text) you do it this way:
'''
a lot of stuff here
with a lot of lines
'''
And it comes out like this - really:
a lot of stuff here
with a lot of lines
Does that help?
Basically the latter is like pressing the </> button at the top of the area where you enter your text.