LoRa custom JavaScript codec function, can not require library

Hello everyone,

While the decryption with the AppKey is being done correctly, i am trying to decode the decrypted frame with a custom javascript function inside the application configuration.
The device that is sending these packages performs a quite complex encoding procedure so the decoding javascript function needs to be complex too.

Is it possible to require some modules or some libraries inside my custom function? I have already tried but in every uplink the error: “js vm error: ReferenceError: ‘require’ is not defined” occurs.

Thank you in advance,
Best regards

No, this is not possible. You can split up the function in and call these within the Decode function, but you need to have the full source in the editor field.