Hello, I’m working on a NodeJS decoder for data being forwarded via webhook from The Things Network. The data in payload is received and I can access it in the nodejs decoder setup in Thinger.io plug-in.
There is however one piece of data that is accessible to be in the native TTN decoder I can’t seem able to access in the thinger plug-in, that is the “fport” number.
In my case I use fport to define the type and structure of the data in the payload, allowing me to maintain just one main decoder rather than different decoders for different TTN applications.
Question: is the fport data available to the nodejs decoder?
I tried this below, but it didn’t work.
module.exports.uplink = function(payload)
{
const buffer = Buffer.from(payload, 'base64');
let processed = {};
processed.fport = payload.fport;
return processed;
};
Cheers.