Hello usual suspects
I thought I would share this quick and dirty little hack I stumbled across whilst trying to decode some dodgy oem’s undocumented trinkets… @fmgst funny, I got the idea from how radiobridge does chirpstack…
Essentially, you start off like this:
function Decode(fPort, bytes, variables) {
return Generic_Decoder(bytes, fPort);
}
and then you simply take the TTN codec and rename it from Decoder(port, bytes) to Generic_Decoder(port, bytes)
and paste it underneath… bish bash bosh!
Well, at least it seems to be working out ok for what I am trying… hope this helps…