Encoder v2
To encode downlinks user must implement the JavaScript function encodeDownlink that is described below.
Example:
function encodeDownlink(input) {
...
return {
"fPort": 0,
"bytes": [],
"errors": [],
"warnings": []
};
}
data- JavaScript object representing downlink. Defined by the converter developer
fPort- int - DL LoRaWAN fPortbytes- int[] - DL payload byte array, each byte represented by integer in range 0-255errors- string[] - list of error messages while encoding the provided payloadwarnings- string[] - list of warning messages that do not prevent encoding the payload