Thank you Jose.
The devices use the standard tokens (not organisational or device based).
I do this so we can allocate devices to different organisations as the model we use is that distributors hold the devices and may use the same one passed around various organisations.
So that is why I don’t use Organisation Tokens. Each device also pulls data from a central ‘controller’ device that holds tariff information common to all devices.
However, the device tokens do look interesting but I have a few questions.
- The main issue is that each device reads certain data from another central device so I would guess that I cannot use a device level token as that will not allow it to be read? (Because we subscribe via MQTT to this other device and certain variables so that the devices are immediately informed of tariff changes etc)
- Is it correct that our customers would never be able to see this token in the browser regardless of their user role settings?
- Is this token automatically generated when the device is created?
- If a device on Ubidots were deleted would it get a new token when created again? (i.e. a device would need to be returned to us to get a new token written in)
- If a device is allocated to a different organisation does the token stay the same?
This does look nice because even if a user found out the device token he could not access the API to fiddle with other devices or create new devices. But I think 1 above means we cannot use it.