node-bacstack icon indicating copy to clipboard operation
node-bacstack copied to clipboard

Support BACnet devices on nonstandard ports

Open adam-nielsen opened this issue 6 years ago • 1 comments

When communicating with other BACnet devices on the same machine, different ports must be used to ensure communications go to the right instance.

The outgoing messages were being sent on the standard BACnet UDP port, instead of going out to the same port they arrived from, making communications with nonstandard devices impossible.

This small patch includes the port number in the address field if it is nonstandard, fixing the issue.

I have tested this both with listening on port 47809 and talking to a device on port 47809, rather than the usual port 47808.

adam-nielsen avatar Jan 31 '19 04:01 adam-nielsen

Updated branch to sync with latest master

adam-nielsen avatar Feb 12 '19 08:02 adam-nielsen