retrieve the built-in DataType of a Variable, from its DataType attribute.
this method is useful to determine which DataType to use when constructing a Variant
const session = ...; // ClientSession const nodeId = opcua.VariableIds.Server_ServerStatus_CurrentTime; session.getBuildInDataType(nodeId,function(err,dataType) { assert(dataType === opcua.DataType.DateTime); }); // or nodeId = opcua.coerceNodeId("ns=2;s=Scalar_Static_ImagePNG"); const dataType: await session.getBuildInDataType(nodeId); assert(dataType === opcua.DataType.ByteString);
the node id of the variable to query
Generated using TypeDoc
retrieve the built-in DataType of a Variable, from its DataType attribute.