How to use the node-opcua-constants.ObjectIds 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-address-space / test_helpers / create_minimalist_address_space_nodeset.js View on Github external
/* global describe,it,before*/

const should = require("should");

const assert = require("node-opcua-assert").assert;

const DataType = require("node-opcua-variant").DataType;

const NodeClass = require("node-opcua-data-model").NodeClass;

const resolveNodeId = require("node-opcua-nodeid").resolveNodeId;

const ObjectTypeIds = require("node-opcua-constants").ObjectTypeIds;
const VariableTypeIds = require("node-opcua-constants").VariableTypeIds;
const ReferenceTypeIds = require("node-opcua-constants").ReferenceTypeIds;
const ObjectIds = require("node-opcua-constants").ObjectIds;
const DataTypeIds = require("node-opcua-constants").DataTypeIds;


const Reference = require("..").Reference;

function dumpReferencesHierarchy(addressSpace) {

    function _dump(referenceType,level) {


        console.log(level,referenceType.browseName.toString(),"(",referenceType.getAllSubtypes().map(x=>x.browseName.toString()).join(" ").green,")");

        const subTypes = referenceType.findReferencesExAsObject("HasSubtype");
        for(let subType of subTypes) {
            _dump(subType,"     "+ level);
github node-opcua / node-opcua / packages / node-opcua-client / src / tools / read_history_server_capabilities.js View on Github external
"use strict";
/**
 *
 */
const lowerFirstLetter = require("node-opcua-utils").lowerFirstLetter;
const makeBrowsePath = require("node-opcua-service-translate-browse-path").makeBrowsePath;
const ObjectIds = require("node-opcua-constants").ObjectIds;
const StatusCodes = require("node-opcua-status-code").StatusCodes;
const NodeId = require("node-opcua-nodeid").NodeId;
const AttributeIds = require("node-opcua-data-model").AttributeIds;
const assert = require("node-opcua-assert").assert;


function readHistoryServerCapabilities(the_session,callback) {
    // display HistoryCapabilities of server
    const browsePath = makeBrowsePath(ObjectIds.ObjectsFolder,"/Server/ServerCapabilities.HistoryServerCapabilities");

    the_session.translateBrowsePath(browsePath,function(err,result) {
        if (err) { return callback(err); }
        if (result.statusCode !==  StatusCodes.Good) {
            return callback();
        }
        const historyServerCapabilitiesNodeId = result.targets[0].targetId;
github node-opcua / node-opcua / packages / node-opcua / index.js View on Github external
module.exports.AccessLevelFlag = require("node-opcua-data-model").AccessLevelFlag;
module.exports.makeAccessLevel = require("node-opcua-data-model").makeAccessLevel;
module.exports.LocalizedText = require("node-opcua-data-model").LocalizedText;
module.exports.coerceLocalizedText = require("node-opcua-data-model").coerceLocalizedText;
module.exports.QualifiedName = require("node-opcua-data-model").QualifiedName;
module.exports.coerceQualifyName = require("node-opcua-data-model").coerceQualifyName;
module.exports.NodeClass = require("node-opcua-data-model").NodeClass;
module.exports.NodeClassMask = require("node-opcua-data-model").NodeClassMask;
module.exports.AttributeIds = require("node-opcua-data-model").AttributeIds;
module.exports.AttributeNameById = require("node-opcua-data-model").AttributeNameById;
module.exports.BrowseDirection = require("node-opcua-data-model").BrowseDirection;

module.exports.VariableTypeIds = require("node-opcua-constants").VariableTypeIds;
module.exports.VariableIds = require("node-opcua-constants").VariableIds;
module.exports.MethodIds = require("node-opcua-constants").MethodIds;
module.exports.ObjectIds = require("node-opcua-constants").ObjectIds;
module.exports.ObjectTypeIds = require("node-opcua-constants").ObjectTypeIds;
module.exports.ReferenceTypeIds = require("node-opcua-constants").ReferenceTypeIds;
module.exports.DataTypeIds = require("node-opcua-constants").DataTypeIds;

// DA
module.exports.standardUnits = require("node-opcua-data-access").standardUnits;
module.exports.makeEUInformation = require("node-opcua-data-access").makeEUInformation;
module.exports.Range = require("node-opcua-data-access").Range;

//
module.exports.get_fully_qualified_domain_name = require("node-opcua-hostname").get_fully_qualified_domain_name;
module.exports.makeApplicationUrn = require("node-opcua-common").makeApplicationUrn;

// services
module.exports.browse_service = require("node-opcua-service-browse");
module.exports.read_service = require("node-opcua-service-read");
github node-opcua / node-opcua / packages / node-opcua-generator / src / factory_code_generator.js View on Github external
*/

const assert = require("node-opcua-assert").assert;
const fs = require("fs");
const path = require("path");
const _ = require("underscore");

const getFactory = require("node-opcua-factory/src/factories_factories").getFactory;

const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers");
const extract_all_fields = schema_helpers.extract_all_fields;
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types;
const check_schema_correctness = schema_helpers.check_schema_correctness;
const coerceNodeId = require("node-opcua-nodeid").coerceNodeId;

const objectNodeIds = require("node-opcua-constants").ObjectIds;
const ec = require("node-opcua-basic-types");

const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId;

const debugLog = require("node-opcua-debug").make_debugLog(__filename);
//xx var doDebug = require("node-opcua-debug").checkDebugFlag(__filename);

const utils = require("node-opcua-utils");
const normalize_require_file = utils.normalize_require_file;
const LineFile = require("node-opcua-utils").LineFile;

//xx exports.folder_for_generated_file = path.normalize(path.join(__dirname,"../../node-opcua/generated"));
//xx if (fs.existsSync && !fs.existsSync(exports.folder_for_generated_file)) {
//xx     fs.mkdirSync(exports.folder_for_generated_file);
//xx }
github node-opcua / node-opcua / packages / node-opcua-server / src / server_session.js View on Github external
const NodeIdType = require("node-opcua-nodeid").NodeIdType;
const ServerSidePublishEngine = require("./server_publish_engine").ServerSidePublishEngine;
const StatusCodes = require("node-opcua-status-code").StatusCodes;
const NodeClass = require("node-opcua-data-model").NodeClass;
const QualifiedName = require("node-opcua-data-model").QualifiedName;

const DataValue = require("node-opcua-data-value").DataValue;
const VariableIds = require("node-opcua-constants").VariableIds;

const ec = require("node-opcua-basic-types");
const assert = require("node-opcua-assert").assert;
const util = require("util");
const EventEmitter = require("events").EventEmitter;
const eoan = require("node-opcua-address-space");
const makeNodeId = require("node-opcua-nodeid").makeNodeId;
const ObjectIds = require("node-opcua-constants").ObjectIds;

const WatchDog = require("node-opcua-utils").WatchDog;
const theWatchDog = new WatchDog();

const ContinuationPointManager = require("./continuation_point_manager").ContinuationPointManager;

const utils = require("node-opcua-utils");
const debugLog = require("node-opcua-debug").make_debugLog(__filename);
const doDebug = require("node-opcua-debug").checkDebugFlag(__filename);

/**
 *
 * A Server session object.
 *
 * **from OPCUA Spec 1.02:**
 *

node-opcua-constants

pure nodejs OPCUA SDK - module constants

MIT
Latest version published 7 months ago

Package Health Score

76 / 100
Full package analysis