I get a message from a serial port every second.
The message is text like "8\r\n" and I need to ask if it over then 55 .
I only look at the number like here 8.
The problem is that I try to compare char with a number and it doesn't work.
how can I solve this.
Hi @gideon
Make sure the Split input is set correctly on the serial node, then you can do
parseInt(msg.payload) > 55 where necessary
You might need to verify you are getting true integers, and not hex values however.
thanks you marcus ![]()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.