Closed shypard closed 2 years ago
Hi, as discussed in #52 I added an example for the decodeUplink() function and updated all the bytes.slice with input.bytes.slice in the README.md .
bytes.slice
input.bytes.slice
The decodeUplink() function takes a input parameter, which contains the sent bytes (See TTN-Docu):
decodeUplink()
input
function decodeUplink(input) { // input has the following structure: // { // "bytes": [1, 2, 3], // FRMPayload (byte array) // "fPort": 1 // } return { data: { bytes: input.bytes }, warnings: ["warning 1", "warning 2"], // optional errors: ["error 1", "error 2"] // optional (if set, the decoding failed) }; }
Hi, as discussed in #52 I added an example for the decodeUplink() function and updated all the
bytes.slice
withinput.bytes.slice
in the README.md .The
decodeUplink()
function takes ainput
parameter, which contains the sent bytes (See TTN-Docu):