reading all node attributes
It is possible to read all attributes of a node by using attribute: All
in the Read node
The payload will contain all attributes of the node. The payload will be an object with a structure similar to this one:
{
attributeId: "All"
nodeId: "ns=0;i=2255"
payload: {
nodeId: "ns=0;i=2255",
statusCode: "Good",
nodeClass: "Variable",
browseName: "NamespaceArray",
displayName: "NamespaceArray",
description: null
writeMask: 0
writeMaskAsString: "None"
userWriteMask: 0
userWriteMaskAsString: "None"
value: {
Value: [
"http://opcfoundation.org/UA/",
"urn:opcuademo.sterfive.com:NodeOPCUA-Server-for-CTT",
"http://opcfoundation.org/UA/DI/",
"http://opcfoundation.org/UA/ADI/",
"http://opcfoundation.org/UA/AutoID/",
"http://opcfoundation.org/UA/MachineVision",
"http://opcfoundation.org/UA/Robotics/" ,
"http://opcfoundation.org/UA/CommercialKitchenEquipment/",
"urn://node-opcua-simulator",
"http://sterfive.com/UA/CoffeeMachine/"
],
ServerPicoseconds: 141996000
SourcePicoseconds: 780667000
ServerTimestamp: "2024-01-27T09:55:24.897Z"
SourceTimestamp: "2024-01-23T20:54:16.573Z"
}
dataTypeName: "String",
dataType: "ns=0;i=12",
valueRank: 1,
arrayDimensions: [0],
accessLevel: 1,
accessLevelAsString: "CurrentRead",
userAccessLevel: 1,
userAccessLevelAsString: "CurrentRead",
minimumSamplingInterval: 1000
}
}
note
The All attribute requires that you read a single nodeId, in the operation. If you want to read multiple nodes, you need to use multiple Read nodes.
Application examples
Reading all attributes of a data type node
You can explore for instance the DataType Definition
of an extension ExtensionObject DataType node, like the RfidScanResult
.
Here is the typical result if you inject the RfidScanResult dataType nodeid to a Read node set up to read All
attributes.