Custom Codec Javascript Engine


#1

I am trying to use the custom javascript codec function, I have a working code in node however I am hitting a lot of js vm errors when I want to use the custom codec feature.
For example when I try to use Buffer, I get the following:
"js vm error: ReferenceError: 'Buffer' is not defined"

Would it be possible to know which functions are available on the js vm ?

Thank you,


#2

I believe the parser/interpreter used by loraserver targets ES5. I don’t know about Buffer, so no idea if it should be supported or not, but you can check the repo for the parser/interpreter package here: https://github.com/robertkrimen/otto.