Module
Module
Modules are JavaScript classes that allow you to add a specific functionality for your Plugin. Your Plugin should have at least one module.
We currently offer these types of Modules for you to use in your Plugin:
- Payload Encoder Module - To encode data before reaching a Device;
- Action Trigger Module - To create a new trigger for Actions;
- Database Module - To create a database that will save TagoCore data.
Setup
Setup is the name of object passed to the constructor of each Module class.
The setup object must have an id and a name property. The setup object may also contain a configs property to request configuration parameters to the user.
const { ServiceModule } = require("@tago-io/tcore-sdk");const setup = { id: "my-service", name: "Pretty name of service", };
new ServiceModule(setup);
Payload Encoder Module
This Module allows you to encode data before it reaches a device. Learn more about it here.
classDef default fill:#333,stroke:#333,stroke-width:2px,color:#fff,font-weight:bold }/>