CPU skyrocketing to 100% with exec node using SLEEP function < 1.0sec, but all good (1-5%) when SLEEP >= 1.0sec

The exec node is just receiving the output over the stdout stream - it has no control over what is being sent.

Any flushing has to be done by the side that is writing to the stream - your C++ code.

1 Like

OMG @knolleary it works !!!!!

I have just added the below code in my C++ :

fflush(stdout)

And now, As expected, every 1 sec, Node-RED is getting the payload !!

Thank you SOOOO MUCH !!!!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.