I don’t know how hard it would be to implement within the custom JS but it would be cool to basically have a try catch wrapping the Cayenne decoder so I could say, in case cayenne fails -> try the custom code.
In case anyone has the same issue, I found a JS implementation of Cayenne lpp decoding and adapted it to match the default cayenne decoder output: I didn’t write the Encode portion but I don’t know how necessary it is…
I ended up extending via the go code since I didn’t want to have to deal with the encoding portion via js:
I ended up having to copy a lot of code because of how go type inheritance works (or at least my limited go experience). It probably is possible to make the encode/decode code portions more object oriented so the CayennLPP is easier to extend.