How to use the node-opcua-constants.VariableIds.DataTypeDescriptionType_DataTypeVersion function in node-opcua-constants

To help you get started, we’ve selected a few node-opcua-constants examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-server / source / server_engine.ts View on Github external
function bindExtraStuff() {
        // mainly for compliance

        // The version number for the data type description. i=104
        bindStandardScalar(VariableIds.DataTypeDescriptionType_DataTypeVersion,
          DataType.UInt16, () => {
            return 0.0;
          });

        const nrt = addressSpace.findDataType(resolveNodeId(DataTypeIds.NamingRuleType))!;
        // xx console.log(nrt.toString());
        if (nrt) {
          const namingRuleType = (nrt as any)._getDefinition().nameIndex; // getEnumeration("NamingRuleType");
          // i=111
          bindStandardScalar(VariableIds.ModellingRuleType_NamingRule,
            DataType.UInt16, () => {
              return 0;
            });

          // i=112
          bindStandardScalar(VariableIds.ModellingRule_Mandatory_NamingRule,
github node-opcua / node-opcua / packages / node-opcua-server / src / server_engine.js View on Github external
function bindExtraStuff() {
            // mainly for compliance

            //The version number for the data type description. i=104
            bindStandardScalar(VariableIds.DataTypeDescriptionType_DataTypeVersion,
                DataType.UInt16, function () {
                    return 0.0;
                });

            // i=111
            bindStandardScalar(VariableIds.ModellingRuleType_NamingRule,
                DataType.UInt16, function () {
                    return 0.0;
                });

            // i=112
            bindStandardScalar(VariableIds.ModellingRule_Mandatory_NamingRule,
                DataType.UInt16, function () {
                    return 0.0;
                });

node-opcua-constants

pure nodejs OPCUA SDK - module constants

MIT
Latest version published 7 months ago

Package Health Score

76 / 100
Full package analysis