The journey of the IoT user starts from assigning his edge device to the cloud and the assignment process should be as simple as possible.
The assignment of a single device is mostly done for testing purposes or when evaluating the solution. Here the time spent on the device assignment will not have a significant impact. But when dealing with a big project mostly we have a bunch of devices that should be assigned to the account. And here it is required to shorten the time spent on the assignment process up to even without touching the device.
TeamViewer IoT cloud offers assignments via token functionality which can be used both for single device assignment and for assigning hundreds or thousands of devices in a secure way.
How it works
For each IoT account, a unique assignment token is being generated. The assignment token can be used only for the device assignment to the account.
During the assignment process, the device connects to TeamViewer IoT cloud and presents its assignment token. The assignment service receives the token and connects the device to the account to which the token belongs.
Starting from that moment device continues to work with the assigned account.
All this process is organized in a seamless way so the device just provides the assignment token.
Using the feature
In the TeamViewer IoT dashboard go to the "Assignment token" page from the main menu.
There you will find the "Assignment token" generated for your IoT account with detailed instructions on how to use it.
Click on revel button to view the assignment token
Open your device terminal and install TeamViewer IoT agent. The article "Install TeamViewer IoT Agent" describes the process of installation.
For the single device assignment use the below provided command by replacing <token> with the one obtained from the "Assignment token" page.
sudo teamviewer-iot-agent assign -t <token> --accept-license
For mass assignment of IoT devices, this command needs to be configured to run once when the device boots.