02/07/2017
OfflineHi,
Is it allowed, according to the specifications, to set the value on a mandatory property, in an event, to null.
For example:
Assuming an event of EventType BaseEventType.
Is it allowed for an OPC UA server to set, for example, property SourceName to null in the event?
If it is, is it the same for any mandatory property in any EventType?
Should an OPC UA client be able to take that into account?
Thanks
05/30/2017
OfflineIf a mandatory field has a nullable value you could set it to. i..e String to ""
But the Value cannot be Variant.Empty for mandatory properties.
However, the "" rule does not apply if the description of the property makes it clear that "" is not a valid value:
SourceName provides a description of the source of the Event. This could be the string-part of the DisplayName of the Event source using the default locale of the server, if the Event is specific to a Node, or some server-specific notation.
(i.e. "" is not a description)
Clients should be designed defensively to deal with misbehaving Servers but that does not make the server right.
1 Guest(s)


Log In

Usage Policy