Code Monkey home page Code Monkey logo

node-opc-da's People

Contributors

emrebekar avatar steuck13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-opc-da's Issues

Error while calling removeGroup()

Getting following error while calling removeGroup()

(node:12728) UnhandledPromiseRejectionWarning: ReferenceError: name is not defined
at OPCServer.removeGroup (E:\Projects\opc-da-client \node_modules\node-opc-da\src\opcServer.js:327:37)

After commenting lines 327 and 344 in file - node_modules\node-opc-da\src\opcServer.js, this error got resolved.

Can you suggest how this issue can be resolved permanently as we are supposed to avoid modifying library stack.

Error getting group status from OPCGroupStateManager.js.

When searching for the status of a group using the "getState()" function of "OPCGroupStateManager.js", an exception was generated for the "const types". After a superficial debug I found that the import of "types" was in lower case, different from what was exposed in lib "node-dcom" upper case. I changed the occurrences in the class "OPCGroupStateManager" and another error started to appear: "buf is not defined", this exception was generated when trying to call the function in:

let result = await this._comObj.call (callObject); // <= Line 101 of OPCGroupStateManager.js

:)

Remove Group is failed

Hi.

removeGroup function is throwing an error because of the "name" parameter is not defined. Please check the code again.

async removeGroup(handle, force) {
        debug("Removing group \"" + name + "\"...");

Error: unknown.queryInterface is not a function when getGroupByName() in opcServer.js

When I try to use the function "getGroupByName (name)" it returns an error. After a superficial debug I found that "resultObj.getResults ()" returns two _type and _obj objects, the initialization must be done in _obj.

let result = resultObj.getResults();
if (hresult != 0) {
if (result.lenght == 0)
throw new Error(String(hresult));
else
debug(new Error(String(hresult)));
}

    let group = new OPCGroupStateManager();
    await group.init(result[0]._obj); // <= here line 257 of "opcServer.js"
    debug("Successfully get request for group \"" + name +"\".");
    return group;
}

After that, the error will no longer occur and degug.log returns us: Successfully get request for group "XYZ_Test".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.