Preload dashboard data
This feature makes the dashboard data available for the user at load time.
Last updated
Was this helpful?
Was this helpful?
var ubidots = new Ubidots();
ubidots.on('ready', async function ()
{
token = ubidots.token;
deviceID = ubidots.selectedDevice;
});token = ubidots.token;
deviceID = ubidots.selectedDevice;const ubidots = new Ubidots();
console.log(ubidots.token);
ubidots.on('receivedToken', function (token) {
console.log(token);
console.log(ubidots.token);
})