node-bacstack
node-bacstack copied to clipboard
Support BACnet devices on nonstandard ports
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.
Updated branch to sync with latest master