Device Templates
A device information model describes the interface to a device or machine.
Before starting with a concrete connection to devices, a device template must be created. It can be applied to different devices or machines using the same communication protocol.
-
First step is to create a new device template out of a collection.
-
Next step is to customize the template (if necessary).
-
Finally, the device template can be applied to different devices of a target.
Add a New Device Template
Add a new device template describing the interface to an IoT device.
-
Click on
Device Templates
in the project tree view -
Click on
Add New Content
(Menu Edit or Right Click) -
Choose one of the device templates Note, that "Empty Device" includes only the device header and driver settings.
Changing Device Templates
-
Double click on the device (left in project view).
-
Change the device template by adding or removing data nodes, commands etc.
Add a new Node
Click on following button to add a new node to the device template.
Select the device node in the following dialog:
There exist different node types:
- Data Nodes
- Command Nodes
- Alarm and Event Pools
- Groups
- Processing Networks with processors, and links
- Type Definitions
Validation of the Template
Especially when working with scripts or advanced settings use the validation button to check for semantical issues:
Working with Variables
The device template supports variables that are mapped to devices and resolved when building the IoT Gateway.
Definition of Template Variables
Click on following button to open the variable editor for templates:
Add new variables. The value can be specified as default value or left blank.
These variables are automatically added to the device or updated on existing device when applying the template.
Check Device Variables for more details on working with variables.
Applying Template to Multiple Devices
Click on following button to apply the template to multiple devices at once.
Select the devices you want to reapply the current template.
Use
CTRL
-key to select different devices.