TagoIO SDK for JavaScript/TypeScript
A comprehensive SDK for interacting with the TagoIO IoT platform. This module provides classes and utilities for device management, data streaming, analysis execution, and API resource management.
import { Device } from "@tago-io/sdk";const device = new Device({ token: "your-device-token" });// Send data to your deviceawait device.sendData({ variable: "temperature", value: 25.6, unit: "°C"});// Get data from your deviceconst data = await device.getData({ variables: ["temperature"], qty: 10 }); Copy
import { Device } from "@tago-io/sdk";const device = new Device({ token: "your-device-token" });// Send data to your deviceawait device.sendData({ variable: "temperature", value: 25.6, unit: "°C"});// Get data from your deviceconst data = await device.getData({ variables: ["temperature"], qty: 10 });
import { Analysis } from "@tago-io/sdk";const analysis = new Analysis({ token: "your-analysis-token" });const environment = await analysis.getEnvironment(); Copy
import { Analysis } from "@tago-io/sdk";const analysis = new Analysis({ token: "your-analysis-token" });const environment = await analysis.getEnvironment();
import { Resources } from "@tago-io/sdk";const resources = new Resources({ token: "your-account-token" });const devices = await resources.devices.list(); Copy
import { Resources } from "@tago-io/sdk";const resources = new Resources({ token: "your-account-token" });const devices = await resources.devices.list();
import type { DeviceListScope, UserListScope, Data, DeviceInfo } from "@tago-io/sdk"; Copy
import type { DeviceListScope, UserListScope, Data, DeviceInfo } from "@tago-io/sdk";
TagoIO SDK for JavaScript/TypeScript
A comprehensive SDK for interacting with the TagoIO IoT platform. This module provides classes and utilities for device management, data streaming, analysis execution, and API resource management.
Example: Basic device usage
Example: Analysis context usage
Example: API resources usage
Example: Type imports