@w2a-iiot/parsers
v4.2.1
Published
WIKA JavaScript parsers
Maintainers
Readme
@w2a-iiot/parsers
Javascript parsers for WIKA's IIoT devices. Can be used on the server or in the browser.
For more information about the parsers, please visit the documentation.
Installation
You can install the package using npm:
npm install @w2a-iiot/parsersUsage
import { NETRIS2parser } from '@w2a-iiot/parsers'
// creates a Netris2 parser instance
const parser = NETRIS2parser()
// decodes the uplink message
const data = parser.decodeUplink({/** ... */})Included devices
The following list shows whether a device is included in the package.
| Device | Included | Factory function |
|--------------|:--------:| :----------------:|
|A2G | ❌ | ❌ |
|F98W6 | ❌ | ❌ |
|GD20W | ❌ | ❌ |
|NETRIS1 | ❌ | ❌ |
|NETRIS2 | ✔️ | NETRIS2parser |
|FLRU+NETRIS3 | ❌ | ❌ |
|PEU+NETRIS3 | ❌ | ❌ |
|PGU+NETRIS3 | ❌ | ❌ |
|TGU+NETRIS3 | ❌ | ❌ |
|TRU+NETRIS3 | ❌ | ❌ |
|PEW | ❌ | ❌ |
|PGW23 | ❌ | ❌ |
|TRW | ❌ | ❌ |
API Reference
The API provided by the parsers here differs from the prebuilt scripts in the way the encoding works. While for LoRaWAN codec specification compatibility, only a single downlink can be returned, the parsers here can return multiple downlinks for a single input. They also optimize the downlinks to be as short as possible and merge multiple configuration changes into a single downlink where possible.
