Configure the Modbus package in Liota to enroll a Modbus Thing device and collect metrics.
Prerequisites
Ensure that you have:
- Created a Liota gateway template on VMware Pulse IoT Center.
- Enrolled a gateway using the Liota gateway template.
- Created a Thing template to enroll the Modbus Thing device.
Procedure
Results
The Modbus humidifier device is enrolled to VMware Pulse IoT Center. The Metrics tab of the device publishes the metrics every 10 seconds.
What to do next
- In the VMware Pulse IoT Center console, go to Inventory > Devices.
- Click the thermostat device that you have enrolled, click the … drop-down menu, and click Commands.
- Click SEND COMMAND.
- In the Send Command window:
- Under Select Command, select the set-temperature command.
- Under Arguments, make sure that the argument name is the same as in the configuration package.
- Under Address, enter the entity type, address, and value type. This address is to identify the device register to be set. For example,
{"entity": "HoldingRegister", "address": 1, "type": "float32"}
- Under Value, enter the temperature value.
- Click SEND COMMAND.
- Refresh the Command History table. The status of the command must change to EXECUTED.
- Verify the update from the Metrics tab.