Get data from TagoIO Device.
Optional
queryParams: DataQuerySummaryObject with query params
An array of TagoIO registers
Get data from TagoIO Device.
Optional
queryParams: DataQueryAggregateObject with query params
An array of TagoIO registers
Get data from TagoIO Device.
Optional
queryParams: DataQueryDefaultObject with query params
An array of TagoIO registers
Get data from TagoIO Device.
Optional
queryParams: DataQueryFirstLastObject with query params
An array of TagoIO registers
Experimental
Get Data Streaming
Optional
params: DataQueryStreamingData Query
Optional
options: OptionsStreamingStream options
Get paronlyUnReameters from device
Get information about the current device
Send data to device
An array or one object with data to be send to TagoIO using device token
amount of data added
Experimental
Stream data to device
An array or one object with data to be send to TagoIO using device token
Stream options
const myDevice = new Device({ token: "my_device_token" });
const data = [
{
variable: "temperature",
unit: "F",
value: 55,
time: "2015-11-03 13:44:33",
location: { lat: 42.2974279, lng: -85.628292 },
},
{
variable: "temperature",
unit: "F",
value: 53,
time: "2015-11-03 13:44:33",
location: { lat: 43.2974279, lng: -86.628292 },
},
// ...
];
const result = await myDevice.sendDataStreaming(data, {
poolingRecordQty: 1000,
poolingTime: 1000,
});
Device class for IoT device operations
This class provides comprehensive functionality for managing IoT devices, including sending and retrieving data, streaming real-time data, and managing device configurations. Each device instance requires a valid device token for authentication.
Example: Basic usage
Example: Data streaming