AS bacnet node was not working for me so, I used bacstack library. I am trying to read the data from a bacnet simulator. But I am getting below error
err: Error: ERR_TIMEOUT
at Timeout._onTimeout (C:\Users\EpsilonPrime\node_modules\bacstack\lib\client.js:75:16)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
Below is the nodejs code written using bacstack library which I wanted to include in function node.
we have checked everything......we need some guidance we are almost there, because if this issue is solved then we dont have to write a nodejs function as the bacnet node is also giving same exception it can be resolved if this problem is resolved.
As @bakman2 suggested, have you tried this in node js (i.e. outside of node red)?
Also, have you tried communicating to localhost or 127.0.0.1.
Have you tried using another bacnet tool to see if you can read values from that simulator? To verify it actually permits read operations for your virtual device.
Lastly, if you get the same error in pure node js, you might get more help if you post an issue on the bacstack repo
I am totally new to node-red but seasoned in BACnet. I apologize but the debug information is not easy to understand but I would suggest to use a monitoring tool like WireShark to actual see what get send and what comes back. This tool can decode BACnet messages into clear text and might help in understanding what is going on. This should help to isolate the problem.