To enroll a Thing Device to your Windows gateway, perform the following steps:
In this example, we enroll a temperature sensor device.
Prerequisites
You must have created a Thing device template.
Procedure
- From the Windows command prompt, run c:\Program Files\VMware\liota\data\packages>pythod liotad\liotapkg.py enroll-device <DeviceTemplateName> <DeviceName>. For example:
c:\Program Files\VMware\liota\data\packages>pythod liotad\liotapkg.py enroll-device LightBulb LightBulb001
- Alternatively, you can enroll a Thing device using the reg.py file:
- Navigate to the Packages folder and open the device package in a text editor.
- Replace the
deviceName
with your device name.
deviceName = "TemperatureSensor001"
- Replace
TemperatureSensorTemplate
with your device template name.
d = PulseConnectedDevice(device_name, "TemperatureSensor", self.iotcc_edge_system.reg_entity_id)
- Save and close the file.
- From the command prompt, run c:\Program Files\VMware\liota\data\packages>python reg.py <device_package_name>
c:\Program Files\VMware\liota\data\packages>python reg.py temperature_sensor
Results
The Thing device is enrolled and connected to your Liota Windows gateway.