<< strtom bytecode_iot_module thingsboard_getDeviceToken >>

bytecode_iot_module >> bytecode_iot_module > thingsboard_getData

thingsboard_getData

Retrieves data from Thingsboard

Syntax

data = thingsboard_getData(url,token,deviceID,key,n)
data = thingsboard_getData(url,token,deviceID,key,n,day_limit)

Parameters

url :

The ThingsBoard platform url

token :

ThingsBoard token

deviceID :

Device ID

key :

The device's variable where the data will be extracted

n :

The maximum number of data to be pulled

day_limit :

The limit on the earliest data to be pulled

Description

Retrieves the data from a variable of a device in ThingsBoard.

Examples

// If your device id is ABC123 and contains a variable called temp
deviceID = "ABC123"
key = "temp"
token = thingsboard_getToken(url,user,pw)
data = thingsboard_getData(url,token,deviceID,key,100)

See also

Authors


Report an issue
<< strtom bytecode_iot_module thingsboard_getDeviceToken >>