From 5f0ef321719cd11ba2399464cc1a85f1208a1c7f Mon Sep 17 00:00:00 2001 From: hubmartin Date: Mon, 24 Jan 2022 11:51:24 +0100 Subject: [PATCH] Update decoder to TTNv2 Signed-off-by: hubmartin --- decode.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/decode.js b/decode.js index 8ac302f..cd55d0c 100644 --- a/decode.js +++ b/decode.js @@ -1,3 +1,11 @@ +function decodeUplink(input) { + return { + data: Decode(input.fPort, input.bytes, 0), + warnings: [], + errors: [] + }; + } + var cursor = 0; var buffer;