ThingsboardApi-class {Rthingsboard} | R Documentation |
Thingboard API Class
Description
Thingboard API Class
Fields
url
character URL of the 'ThingsBoard' IoT platform.
publicId
character the public ID of the device
token
character the current token
tokenTimeOut
A numeric contains the time out of a token in seconds (default 300)
tokenEpiration
A numeric with the Epoch of the expiration date time of current token
See Also
The ThingsboardApi
class methods :
-
ThingsboardApi_checkToken for checking and refreshing the token
-
ThingsboardApi_getToken for getting authorisation token from Thingsboard server for a specific device
-
ThingsboardApi_getKeys for fetching data keys of an entity
-
ThingsboardApi_getValues and ThingsboardApi_getTelemetry for fetching telemetry of an entity
Examples
thinksboard_api = tryCatch(
{
ThingsboardApi(url="http://scada.g-eau.fr",
publicId="299cedc0-f3e9-11e8-9dbf-cbc1e37c11e3")
},
error = function(e) {
message("An error occured:\n", e)
return(FALSE)
}
)
[Package Rthingsboard version 0.2.7 Index]