Skip to content
VSCP type constants
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.eslintrc.json
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json
test.js
vscp_type.js

README.md

node-vscp-type

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

Install

Install with

npm install node-vscp-type

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

Usage

const vscp_type = require('node-vscp-type');
...
// To get numerical value for type
console.log(vscp_type.VSCP_TYPE_MEASUREMENT_PRESSURE);

// To get symbolic value of  class/type pair
// vscp_type(vscpClass,vscpType)
// output: 'VSCP2_TYPE_VSCPD_DRV3_CONFIG'
console.log(vscp_type(65535,12));

Events

Available events are here

Using this module in 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.

You can’t perform that action at this time.