Refreshes a ThingsBoard token.
newtoken = thingsboard_refreshToken(url,oldtoken)
The ThingsBoard platform url
A struc containing the expired token
A struc containing the new token
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