¿ªÔÆÌåÓýBTW, this can all be done in one function node using Mick¡¯s example then looking for each msg.out to either be 0 or 1 and setting msg.out to false or true. (if/else) ? More than one way to get to the desired output. ? Dave wo2x ? From: [email protected] <[email protected]> On Behalf Of Mick - W8BE
Sent: Friday, January 29, 2021 3:01 PM To: [email protected] Subject: Re: [nodered-hamradio] Parsing a string ? Here is a function to split the input and output a msg for each bit.? ?I used a string of 10000000 as the inject ? ? The output gives you the msg.payload and msg.topic ? Here is the function. ? var output = msg.payload.split(""); You could then run this into a switch node for further?processing or just modify it by creating a var instead of msg and then process it in the function.? ? On Fri, Jan 29, 2021 at 1:53 PM David De Coons wo2x <RocketNJ@...> wrote:
|