¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Global variable initialized as number errors as NaN


 

¿ªÔÆÌåÓý

Thanks Mick,

? My issue is the other way around. ?

? My Node Red function is sending the Non Numeric to the MOAS II server.?

? I will try adding the node.status anyway to see what is being sent instead of the sequence number. ??

? I will also try hard coding a number to see if that confirms the problem is truly with my Node Red flow and not the MOAS II server.?

Thanks again,

George / W7GES?

On Jul 6, 2022, at 6:06 PM, Mick - W8BE <w8bea2b2c2@...> wrote:

?George,

It sounds like the MOAS II server is not sending the numeric data the function is looking for.? ?Even if you set it to a default number then server may be overwriting the variable with NaN when the msg arrives.? ?You can add this to your code to see the status of the variable on the node in the editor

node.status({text:(?"txstatus"?+?variable_a)});

Then you will see the status on the function:

dummyfile.0.part

This may help your debug.

Regards
--
Mick, W8BE

Join [email protected] to automatically receive all group messages.