Integration Guide
This guide provides instructions on how to integrate the WIKA JavaScript parsers into your LoRaWAN network server or gateway.
Exposed Functions
The WIKA parsers follow the LoRaWAN® Payload Codec API Specification TS013-1.0.0 and expose the following primary function:
decodeUplink(input)- Decodes uplink messages from your devices
For additional functions and version-specific details, see the API Description page.
Spec-Compliant Systems
For most LoRaWAN gateways and network servers that comply with the specification, the parser works out of the box. Simply:
- Download and configure your parser (set measuring ranges)
- Upload it to your gateway/network server
- Done! The parser will automatically use
decodeUplink()
Important
Always adjust the measuring ranges to match your specific sensor before deployment.
Non-Compliant Systems
Some gateways or network servers use custom function names instead of the standard decodeUplink. If your system expects a different function name (e.g., decode, Decode, decodePayload, Decoder), add a wrapper function at the bottom of your downloaded parser:
// Add this at the bottom of your parser file
function decode(input) {
return decodeUplink(input)
}Replace decode with whatever function name your system expects. This simple wrapper is sufficient for most cases.
How to check: Consult your gateway or network server documentation. Look for sections about "payload formatters", "codec", or "decoder" to find the expected function name.
Network Server Integration
To integrate the WIKA parsers into your LoRaWAN network server, follow these general steps. Specific instructions may vary depending on the network server you are using.
- Download the Parser:
Obtain the latest prebuilt parser from the releases section of the repository or configure it on the WIKA IIoT Toolbox (recommended). - Configure the Parser:
Set up the parser according to your specifications. Set the rounding decimals and measurement ranges as needed. The WIKA IIoT Toolbox provides an easy way to configure these settings before downloading the parser. - Upload the Parser:
Go to the documentation of your network server to learn where and how to upload or configure the parser. - Test the Parser:
Send test payloads to ensure that the parser is functioning correctly. This can also be done on the WIKA IIoT Toolbox if you have used it to configure the parser in the first step. - Monitor and Maintain:
Regularly check the Release notes to stay updated with any changes or improvements to the parsers.
Gateway Integration
If you are using a LoRaWAN gateway that supports custom payload parsers, follow these generic steps:
- Download the Parser:
Go to the Downloads page. Use the WIKA IIoT Toolbox (recommended) or download from GitHub Releases. - Configure the Parser:
Set up the parser according to your specifications. Set the rounding decimals and measurement ranges as needed. The WIKA IIoT Toolbox provides an easy way to configure these settings before downloading the parser. - Upload the Parser:
Go to the documentation of your gateway to learn where and how to upload or configure the parser. - Test the Parser:
Send test payloads to ensure that the parser is functioning correctly. This can also be done on the WIKA IIoT Toolbox if you have used it to configure the parser in the first step. - Monitor and Maintain:
Regularly check the Release notes to stay updated with any changes or improvements to the parsers.
Custom Integration
If you need to integrate the WIKA JavaScript parsers into a custom application or platform, please refer to the Custom Integration guide.
