Hi

I'm new at node.js and node-red , maybe for this there is simple solution 
but I could not figured out.

I have custom node that is using native node.js package to communicate with 
Modbus RTU devices.

When I have one node everything works ok but if I have two nodes on my 
sheet there is problem. 


When one node sends Modbus RTU request and it is waiting for answer trough 
callback it looks that another node is trying to send request and callback 
in not executed on first node yet.

I know that if I'm using Sync function this will work but it will stop 
complete execution.

How I can make sure that second node does not send Modbus RTU request until 
first node receives correct response from Modbus RTU device ?

<https://lh3.googleusercontent.com/-aubnUhYMZ0I/VhGEtF1p_TI/AAAAAAAAAIU/I7c8zzqIrlw/s1600/2015-10-04%2B15_52_38-Node-RED%2B_%2B192.168.1.105.png>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/015e5d00-3f1a-4520-90c8-633fc278964d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to