<< thingsboard_getKeys bytecode_iot_module thingsboard_postData >>

bytecode_iot_module >> bytecode_iot_module > thingsboard_getToken

thingsboard_getToken

Retrieves a ThingsBoard token.

Syntax

token = thingsboard_getToken(url,user,pw)

Parameters

url :

The ThingsBoard platform url

user :

Username

pw :

password

token :

A struc containing the token ID and refresh token ID

Description

Retrieves a ThingsBoard token ID using the username and password. The token allows a user to pull data from ThingsBoard. The token expires after a period of time and needs to be refreshed.

Examples

url = "http://thingsboardwebsite"
user = "username@useremail.com"
pw = "userpassword"
token = thingsboard_getToken(url,user,pw)

See also

Authors


Report an issue
<< thingsboard_getKeys bytecode_iot_module thingsboard_postData >>