If you are going to create your own parser, you need to understand how context works.
When you start writing your own Payload Parser, you can use certain global variables in your code. Think of these global variables as variables you can access anywhere without explicitly creating them, similar to built-in keywords like module or process in Node.js.
These global variables can vary from simple objects to complex functions or arrays. To see a list of the global variables available, check the Payload Parser tab in the Device details.
- This variable must be an Array of TagoIO data when the code ends.
- These are functions available to be used in the Payload Parser.