How to use the node-opcua-data-model.AttributeIds function in node-opcua-data-model

To help you get started, we’ve selected a few node-opcua-data-model 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 / index.js View on Github external
module.exports.buildVariantArray = require("node-opcua-variant").buildVariantArray;

module.exports.DataValue = require("node-opcua-data-value").DataValue;
module.exports.sameDataValue = require("node-opcua-data-value").sameDataValue;

module.exports.NumericRange = require("node-opcua-numeric-range").NumericRange;

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;
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;
        // (should be ns=0;i=11192)
        assert(historyServerCapabilitiesNodeId.toString() === "ns=0;i=11192");
github node-opcua / node-opcua / packages / node-opcua-address-space / src / ua_data_type.js View on Github external
"use strict";

/**
 * @module opcua.address_space
 */


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

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


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

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

const StatusCodes = require("node-opcua-status-code").StatusCodes;

const NumericRange = require("node-opcua-numeric-range").NumericRange;


const BaseNode = require("./base_node").BaseNode;
const SessionContext = require("./session_context").SessionContext;


/**
github node-opcua / node-opcua / packages / node-opcua-client-crawler / src / node_crawler.js View on Github external
"use strict";
const async = require("async");
const _ = require("underscore");
const util = require("util");
const EventEmitter = require("events").EventEmitter;
const assert = require("node-opcua-assert").assert;


const AttributeIds        = require("node-opcua-data-model").AttributeIds;
const BrowseDirection     = require("node-opcua-data-model").BrowseDirection;
const QualifiedName       = require("node-opcua-data-model").QualifiedName;
const LocalizedText       = require("node-opcua-data-model").LocalizedText;
const NodeClass           = require("node-opcua-data-model").NodeClass;

const BrowseDescription   = require("node-opcua-service-browse").BrowseDescription;

const resolveNodeId       = require("node-opcua-nodeid").resolveNodeId;
const NodeId              = require("node-opcua-nodeid").NodeId;
const sameNodeId          = require("node-opcua-nodeid").sameNodeId;
const makeNodeId          = require("node-opcua-nodeid").makeNodeId;
const StatusCodes         = require("node-opcua-status-code").StatusCodes;

const browse_service     = require("node-opcua-service-browse");

const lowerFirstLetter    = require("node-opcua-utils").lowerFirstLetter;
github node-opcua / node-opcua / packages / node-opcua-address-space / src / ua_variable.js View on Github external
"use strict";
/**
 * @module opcua.address_space
 */

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

const utils = require("node-opcua-utils");
const NodeClass = require("node-opcua-data-model").NodeClass;
const AttributeIds = require("node-opcua-data-model").AttributeIds;
const extractRange = require("node-opcua-data-value").extractRange;
const is_valid_dataEncoding = require("node-opcua-data-model").is_valid_dataEncoding;
const is_dataEncoding = require("node-opcua-data-model").is_dataEncoding;
const AccessLevelFlag = require("node-opcua-data-model").AccessLevelFlag;
const makeAccessLevel = require("node-opcua-data-model").makeAccessLevel;

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


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

const Variant = require("node-opcua-variant").Variant;
const DataType = require("node-opcua-variant").DataType;
const VariantArrayType = require("node-opcua-variant").VariantArrayType;
github node-opcua / node-opcua / packages / node-opcua-address-space / src / ua_object_type.js View on Github external
"use strict";

/**
 * @module opcua.address_space
 */

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

const _ = require("underscore");

const util = require("util");
const utils = require("node-opcua-utils");

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

const DataValue =  require("node-opcua-data-value").DataValue;
const DataType = require("node-opcua-variant").DataType;
const StatusCodes = require("node-opcua-status-code").StatusCodes;


const BaseNode = require("./base_node").BaseNode;
const SessionContext = require("./session_context").SessionContext;
/**
 * @class UAObjectType
 * @param options
 * @constructor
 */
function UAObjectType(options) {

    BaseNode.apply(this, arguments);
github node-opcua / node-opcua / packages / node-opcua-server / src / opcua_server.js View on Github external
const BrowseNextResponse = browse_service.BrowseNextResponse;

const RegisterNodesRequest = register_node_service.RegisterNodesRequest;
const RegisterNodesResponse = register_node_service.RegisterNodesResponse;
const UnregisterNodesRequest = register_node_service.UnregisterNodesRequest;
const UnregisterNodesResponse = register_node_service.UnregisterNodesResponse;

const TranslateBrowsePathsToNodeIdsRequest = translate_service.TranslateBrowsePathsToNodeIdsRequest;
const TranslateBrowsePathsToNodeIdsResponse = translate_service.TranslateBrowsePathsToNodeIdsResponse;



const NodeId = require("node-opcua-nodeid").NodeId;
const DataValue = require("node-opcua-data-value").DataValue;
const DataType = require("node-opcua-variant").DataType;
const AttributeIds = require("node-opcua-data-model").AttributeIds;

const MonitoredItem = require("./monitored_item").MonitoredItem;

const View = require("node-opcua-address-space").View;

const crypto = require("crypto");

const dump = require("node-opcua-debug").dump;

const OPCUAServerEndPoint = require("./server_end_point").OPCUAServerEndPoint;

const OPCUABaseServer = require("./base_server").OPCUABaseServer;

const exploreCertificate = require("node-opcua-crypto").exploreCertificate;
github node-opcua / node-opcua / packages / node-opcua-address-space / src / address_space_add_event_type.js View on Github external
const lowerFirstLetter = require("node-opcua-utils").lowerFirstLetter;

const doDebug = false;


const BaseNode = require("./base_node").BaseNode;
const UAVariable = require("./ua_variable").UAVariable;
const UAMethod = require("./ua_method").UAMethod;
const UAObjectType = require("./ua_object_type").UAObjectType;

const constructBrowsePathFromQualifiedName = require("node-opcua-service-translate-browse-path").constructBrowsePathFromQualifiedName;


const SimpleAttributeOperand = require("node-opcua-service-filter").SimpleAttributeOperand;

const AttributeIds = require("node-opcua-data-model").AttributeIds;
const context = require("./session_context").SessionContext.defaultContext;
const DataValue = require("node-opcua-data-value").DataValue;

const Namespace = require("./namespace").Namespace;

/**
 * @class EventData
 * @param eventTypeNode {BaseNode}
 * @constructor
 */
function EventData(eventTypeNode) {
    this.__nodes = {};
    this.$eventDataSource = eventTypeNode;
    assert(eventTypeNode instanceof BaseNode);
}
github node-opcua / node-opcua / packages / node-opcua-client-proxy / src / proxy.js View on Github external
/**
 * @module opcua.client
 */


const async = require("async");
const assert = require("node-opcua-assert").assert;
const _ = require("underscore");
const util = require("util");
const EventEmitter = require("events").EventEmitter;


const read_service = require("node-opcua-service-read");
const call_service = require("node-opcua-service-call");

const AttributeIds = require("node-opcua-data-model").AttributeIds;
const AccessLevelFlag = require("node-opcua-data-model").AccessLevelFlag;
const coerceAccessLevelFlag =require("node-opcua-data-model").coerceAccessLevelFlag;
const makeResultMask = require("node-opcua-data-model").makeResultMask;
const BrowseDirection = require("node-opcua-data-model").BrowseDirection;
const NodeClass = require("node-opcua-data-model").NodeClass;
const makeNodeClassMask = require("node-opcua-data-model").makeNodeClassMask;

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

const NodeId = require("node-opcua-nodeid").NodeId;
const makeNodeId = require("node-opcua-nodeid").makeNodeId;
const coerceNodeId = require("node-opcua-nodeid").coerceNodeId;

const StatusCodes = require("node-opcua-status-code").StatusCodes;
github node-opcua / node-opcua / packages / node-opcua-client / src / client_subscription.js View on Github external
const _ = require("underscore");

const EventEmitter = require("events").EventEmitter;

const utils = require("node-opcua-utils");

const subscription_service = require("node-opcua-service-subscription");

const ClientSession = require("../src/client_session").ClientSession;
const ClientMonitoredItem = require("../src/client_monitored_item").ClientMonitoredItem;

const StatusCodes = require("node-opcua-status-code").StatusCodes;

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

const AttributeIds = require("node-opcua-data-model").AttributeIds;
const TimestampsToReturn = require("node-opcua-service-read").TimestampsToReturn;

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

/**
 * a object to manage a subscription on the client side.
 *
 * @class ClientSubscription
 * @extends EventEmitter

 * events:
 *    "started",     callback(subscriptionId)  : the subscription has been initiated
 *    "terminated"                             : the subscription has been deleted
 *    "error",                                 : the subscription has received an error
 *    "keepalive",                             : the subscription has received a keep alive message from the server