BACnet Enumerations for js
Decided to put together this module after copying and pasting the same enumerations across multiple node projects. Feel free to contribute. While this is not complete yet, there will always be room for both vendor specific enumerations, as well as improvements // suggestions. --enjoy
Currently implemented:
- Application Tag
- Days of Week
- Error Code
- Event State
- Event Type
- Object Type
- Polarity
- Property Id
- Property State
- Reliability
- Restart Reason
- Services Supported
- Units Id
- Vendor Id
- Write Priority
Install the module with NPM: npm install bacnet-enums --save
Install the module with YARN: yarn add bacnet-enums
// Import as a commonJS module
const bacnetEnums = require('bacnet-enums');
// ES6 imports
// import everything
import * as bacnetEnums from 'bacnet-enums';
// import specific enums
import { ObjectType } from 'bacnet-enums';
const type = ObjectType[8];
console.log(type); // device
const device = ObjectType['device'];
console.log(device); // 8
(Coming soon)
In lieu of a formal styleguide, take care to maintain the existing coding style.
(Nothing yet)
Copyright (c) 2016 Ryan Luton. Licensed under the MIT license.