Nearly Pure Mustard

    node-vscp-class

    1.0.19 • Public • Published

    node-vscp-class

    VSCP class constants for the node.js package node-vscp-class

    Install

    Install with

    npm install node-vscp-class

    optionally with '--save' to save dependency in the package.json file.

    Usage

    const vscp_class = require('node-vscp-class');
    ...
    // Get numeric id for class
    console.log(vscp_class.VSCP_CLASS2_MEASUREMENT_STR);
    
    // Get symbolic value for class
    // vscp_class(vscpClass);
    // output: 'CLASS1.SETVALUEZONEX3'
    console.log(vscp_class(88));

    Events

    Available events are here

    Using this module with node-red

    If you work with VSCP it is convenient to use constants instead of magical numbers when defining/sending event. Info on how to do this is available here.


    This package is part of the VSCP(Very Simple Control Protocol) IoT framework.

    Install

    npm i node-vscp-class

    DownloadsWeekly Downloads

    1

    Version

    1.0.19

    License

    MIT

    Unpacked Size

    15.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • akhe