Skip to content

Commit

Permalink
doc: Add v2 payload formatter note
Browse files Browse the repository at this point in the history
  • Loading branch information
benolayinka committed Nov 17, 2020
1 parent 03a4e94 commit 4a4f8b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/content/integrations/payload-formatters/javascript.md
Expand Up @@ -9,6 +9,8 @@ Javascript payload formatters allow you to write your own functions to encode or

> **Note:** Payload formatters use ECMAScript 5 (2009), which has some distinct differences compared to newer, commonly used ECMAScript revisions. See [here](https://www.javatpoint.com/es5-vs-es6) for a quick comparison. Notably, `let`, `const`, and arrow functions are not supported by ES5.
> **Note:** Javascript payload formatters from {{% ttnv2 %}} will work in {{% tts %}}. {{% tts %}} has a new payload formatter signature, but it is also backwards compatible.
Tips:
- The payload formatters should be simple and lightweight.
- Use arithmetic operations and bit shifts to convert binary data to fields.
Expand Down

0 comments on commit 4a4f8b2

Please sign in to comment.