This module provides set of utility nodes in Node-RED for creating, parsing NVL (Network Variable List) UDP packets.
nvl-json
: Outputs JSON object with falsy values based on the configured NVL.nvl-reader
: Parses received NVL packets and returns the entire NVL as JSON object. Will only send output when it receives the last expected packet. Outputed JSON object has the same structure as the one created vianvl-json
.nvl-emitter
: Outputs NVL packet(s) using given JSON object. Input JSON object must have the same structure as the ones outputed vianvl-json
andnvl-reader
.
Created using @alexk111's node-red template
VAR_GLOBAL
flag: BOOL;
counter: WORD;
message: STRING(50);
wordArray: ARRAY [1..5] OF WORD;
timeMatrix: ARRAY [1..2] OF ARRAY [1..3] OF WORD;
threeD: ARRAY [0..1, 0..1, 0..1] OF WORD;
END_VAR
will be converted to:
{
"flag": false,
"counter": 0,
"message": "",
"wordArray": [0,0,0,0,0],
"timeMatrix": [
[0,0,0],
[0,0,0]
],
"threeD": [
[[0,0], [0,0]],
[[0,0], [0,0]]
]
}
BigInt
- More detailed documentation for nodes
- Options to define how input is received and how output is delivered
STRUCT
- Tests
MIT