Parser vs. Analysis Comparison
The Payload Parser was created to handle raw payload sent by the devices in order to extract the measured variables or execute simple operations.
Analysis is much more powerful, including access to buckets and external services. Also, there is a cost to run them.
Payload Parser has only a simple JavaScript engine which was coded by TagoIO to be easy, light and free. See some of the differences between them:
Features | Payload Parser | Analysis |
---|
Code size limit | 64kb | 5MB |
Language | Simple JavaScript syntax | Full JavaScript and others |
Async | No | Yes |
Sync | Yes | Yes |
Allows Custom Functions | Yes | Yes |
Allows external integration | No | Yes |
Allows requires/imports | No (only built-in function) | Yes |
Console Log or Context | Yes (Device Inspector) | Yes |
Timeout | 1,000 ms | Custom |
Needs Action to trigger it | No | Yes |
Cost of the service | Free |
|
Related Articles
Payload Parser
The Payload Parser handles the raw payload sent by the devices in order to extract the measured variables. For example, it can be used to transform an HEX payload sent by a device into temperature and battery levels. You can also use it to handle ...
Creating Analysis
Creating your own analysis is easy. First, click on Analysis on the sidebar, then click the + Add Analysis button in the upper right of the analysis main screen. Just write a name and you’re ready to go! 1. Name What you usually use to identify your ...
Analysis Overview
Analysis is a powerful feature that experts and developers can use to implement scripts to analyze and manipulate data from any device in real-time. The scripts that run at TagoIO are programmed with the Node.js TagoIO's SDK. Get more instructions on ...
Analysis Service
Every time the Analysis runs one script, its runtime duration is counted against the limit in that specific Profile (increment of 1 second). This limit defines the total available runtime your Analyses can have to run inside TagoIO. For example: if ...
Building your own parser
In this tutorial, you will learn how to convert (parse) a raw payload sent by a device into actual measurable variables. Data flow structure You can create parses for devices that weren't found in our list of Devices, so that you had to use a ...