Non unique Object Names???
I create and initiate a device with multiple objects with the same name.
No problems, no exceptions, everything works "fine".
But according to the BACnet standard, object names MUST be unique.
Am I missing something?
Thanks a lot in advance.
As far as I can tell it is the BACnet Object Identifier that must be unique. Although I have noticed that some third party BACnet devices get a bit confused when they see objects that have the same name. Although bacnet4j only cares about the object identifier being unique.
I hope that helps
Yes, it helps, thanks a lot for your response.
Well, actually, according to the standard, the object name MUST be unique:
(This is not the specification document, but I have read the same in many BACnet sources)
I don't doubt that there may be good arguments why this is not necessary or maybe even a bad strategy.
However, strictly speaking, if we want to say that bacnet4j implements the BACnet specification, I think it should ensure the uniqueness of the object name.
I've added a check for name uniqueness upon adding a new local object to the local device (check into CVS). Note that uniqueness could still be violated by changing the name of an existing object though.
Is then the same true when changing an ObjectIdentifier? Or is the latter simply not writable?
Thanks + regards!
Presumably yes, you can change the oid, although oids themselves are immutable.