Dear Community, i am using Node Red since 3 Months now and did a good learning on it.
But i am stuck all day long, and not quite good @ js.
I Have a SMS Gateway Which accepts a payload of: NUMBER_TEXT_. e.g: +46887656_Test SMS _
The underscores are for the gateway to know waht is sms and text.
I have problems to do concatenation...
I want to use a form (dashboard) to send sms.
Form gives following object:
msg.payload : Object
object
Number: "1234"
Text: "test"
I tried following via function:
var txt=msg.payload.Text
var nmbr=msg.payload.Number
var msg1 =
{
payload:nmbr
};
var msg2 =
{
payload:txt
};
msg.payload = "";
msg.payload += msg1;
msg.payload += "";
msg.payload += msg2;
msg.payload += "";
return msg.payload;
Can anyone help me to concat taht string??? I am Totally stuck ...