Skip to content

Commit

Permalink
Update packed_decodeUplink.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkbeer authored Oct 31, 2023
1 parent a72fef1 commit d78c7fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/TTNv3/packed_decodeUplink.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,13 @@ if (typeof module === 'object' && typeof module.exports !== 'undefined') {
version: version,
decode: decode
};
}
}

function Decoder(bytes, port, uplink_info) {
var input = {
fPort: port,
bytes: bytes
};
var output = decodeUplink(input);
return output.data;
}

0 comments on commit d78c7fe

Please sign in to comment.