MangoAutomation / BACnet4J

BACnet/IP stack written in Java. Forked from http://sourceforge.net/projects/bacnet4j/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BACnet - Vendor Name Issue

drd888 opened this issue · comments

The proper value for the vendor ID is returned but the vendor name is not being populated.
I did not quite a bit of static analysis but could not find the issue.

I am using:
com.serotonin.bacnet4j.RemoteDevice
getVendorName()

The vendorName is pupulated from remote Device object property. Same logic as for vendorIdentifier, its just different type:

package com.serotonin.bacnet4j.type.enumerated;

public class PropertyIdentifier extends Enumerated {
  // ...
  public static final PropertyIdentifier vendorIdentifier = new PropertyIdentifier(120);
  public static final PropertyIdentifier vendorName = new PropertyIdentifier(121);
  // ...
}

It happens that these values are somewhat not matching. For example producer is one firm, but firmware/board for electronics is shipped by another.