Coder Social home page Coder Social logo

Comments (4)

apearson avatar apearson commented on August 20, 2024 1

This is corrected (c2d81c7) with the following being the resolved api. More work should go into this to use the static methods but I'm leaving that for an API clean up

console.log('Device');
console.log(await sunroomD.getDeviceInfo())
console.log(await sunroomD.getFullDeviceInfo())

console.log('Modem');
console.log(await modem.queryDeviceInfo(sunroom));
console.log(await modem.queryFullDeviceInfo(sunroom));

from insteon-plm.

apearson avatar apearson commented on August 20, 2024

It looks like the Modem function gets the device db info from the cat and subcat.

whereas

the device class does a id request to get cat, subcat, and hardware on device.

I agree these should be named differently.

from insteon-plm.

PaulWieland avatar PaulWieland commented on August 20, 2024

PowerLincModem.getDeviceInfo is called by PowerLincModem.queryDeviceInfo

The PowerLincModem.queryDeviceInfo sends the ID request to the device. What i'm proposing is that we just re-use these static methods provided by the PLM class in the device class so that device.getDeviceInfo returns the same object as PowerLincModem.getDeviceInfo.

from insteon-plm.

apearson avatar apearson commented on August 20, 2024

device.getDeviceInfo also returns the hardware and firmware version of the particular device but I get where you're coming from and I'm working on a unification of the names

from insteon-plm.

Related Issues (20)

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.