Giter VIP home page Giter VIP logo

Comments (3)

marcus-j-davies avatar marcus-j-davies commented on May 29, 2024

Hi @georgeinva2004,
The instance can't be set - but the instance properties within can be.
i.e Options.logConfig.filename = "./zwave.log"

 public class CFGLogConfig
    {
        public bool logToFile { get; set; }
        public bool enabled { get; set; }
        public Enums.LogLevel level { get; set; }
        public int[] nodeFilter { get; set; }
        public string filename { get; set; }
    }

It might also be a good idea to delete server.psi (so it pulls down the latest one via Helpers.DownloadPSI())
there are (whilst small) changes in the middleware

from zwavejs.net.

marcus-j-davies avatar marcus-j-davies commented on May 29, 2024

mapping of CMDResults

Yeah - prior to V3, I was not taking into consideration any error, that may be returned, so was assuming the expected result will always be returned - which of course is not always the case 😅.

providing Success is true the Payload (if any) should be provided, if Success is false - it will hold any error message retuned by the driver.

It has 2 contructors.

  • Taking in the payload as is (from the middleware)
  • And Allowing me to return it early (in case of an issue before it hits the middleware)
    i.e certain required events not being subscribed to.

https://github.com/zwave-js/ZWaveJS.NET/blob/main/Visual%20Studio%20Projects/ZWaveJS.NET/ZWaveJS.NET/CMDResult.cs

from zwavejs.net.

marcus-j-davies avatar marcus-j-davies commented on May 29, 2024

Feel free to open up a conversation - Have just enabled them on the repo 👍
assuming this is safe to close.

from zwavejs.net.

Related Issues (16)

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.