1.0.20 • Published 2 years ago
node-vscp-type v1.0.20
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.
1.0.19
2 years ago
1.0.18
2 years ago
1.0.20
2 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago