advlib-eep-vld
v1.2.1
Published
Wireless advertising packet decoding library for EnOcean Equipment Profile VLD telegrams. We believe in an open Internet of Things.
Downloads
56
Maintainers
Readme
advlib-eep-vld
Wireless advertising packet decoding library for EnOcean Equipment Profiles of variable-length data (VLD). advlib-eep-vld is typically used as a library for advlib-esp which itself is commonly a processor module of the protocol-agnostic advlib.
advlib-eep-vld is a lightweight Node.js package with no dependencies. See also its sister libraries advlib-eep-4bs and advlib-eep-rps.
Installation
npm install advlib-eep-vld
Hello advlib-eep-vld!
const advlib = require('advlib-eep-vld');
let eepType = 'D2-14-41';
let telegram = 'd29165c02963e4f5d8000414006980';
let processedData = advlib.processVLDTelegram(eepType, telegram);
console.log(processedData);
Which should yield the following console output:
{
acceleration: [ -0.01, -0.045, 1.02 ],
illuminance: 331,
isContactDetected: [ false ],
isMotionDetected: [ false ],
relativeHumidity: 75.5,
temperature: 18.1
}
Supported EnOcean Equipment Profiles
The following EEPs are currently supported by advlib-eep-vld.
| EEP | Profile Name | /lib file | |:---------|:---------------------------------------|:------------------------| | D2-14-41 | Temperature, Humidity XYZ Acceleration, Illumination Sensor | multifunctionsensors.js | | D2-14-50 | Basic Water Properties Sensor (pH) | multifunctionsensors.js | | D2-14-51 | Basic Water Properties Sensor (Dissolved Oxygen) | multifunctionsensors.js | | D2-15-00 | Single Sensor | singlesensor.js |
See www.reelyactive.com/pareto/anywhere/devices/enocean-alliance/ for a list of all EEPs supported by our Pareto Anywhere open source IoT middleware.
Contributing
Discover how to contribute to this open source project which upholds a standard code of conduct.
Security
Consult our security policy for best practices using this open source software and to report vulnerabilities.
License
MIT License
Copyright (c) 2022-2024 reelyActive
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.