<< thingsboard_postData bytecode_iot_module thingspeak_channelinfo >>

bytecode_iot_module >> bytecode_iot_module > thingsboard_refreshToken

thingsboard_refreshToken

Refreshes a ThingsBoard token.

Syntax

newtoken = thingsboard_refreshToken(url,oldtoken)

Parameters

url :

The ThingsBoard platform url

oldtoken :

A struc containing the expired token

newtoken :

A struc containing the new token

Description

Refreshes an expired ThingsBoard token using the old token. If the refresh token has also expired, you need to retrieve a new token using thingsboard_getToken

Examples

token = thingdboard_getToken(url,user,pw)
// After some time, the token will expire and needs to be refreshed
token = thingsboard_refreshToken(url,token)

See also

Authors


Report an issue
<< thingsboard_postData bytecode_iot_module thingspeak_channelinfo >>