How to use AGILE Kura REST api

From AGILE IoT Wiki
Revision as of 16:54, 27 November 2018 by Dpapadimatos (talk | contribs)
Jump to: navigation, search

This tutorial will show how to collect data from a Modbus device and publish it on a cloud platform using the interaction between NodeRED and Eclipse Kura. The Modbus device will be emulated using a software simulator, like <a href="" about="_blank">ModbusPal</a>.

Configure Modbus device

1. Download <a href="" about="_blank">ModbusPal</a> on a computer that will act as a Modbus slave.

2. Open ModbusPal application as root and click on the “Add” button under the “Modbus Slaves” tab to create a Modbus slave device. Select an address (i.e. 1) and put a name into the “Slave name” form.

3. Click on the button with the eye to edit the slave device. Once the window is opened, add a coil with address 1 and set a value (0 or 1).

4. Close the editor and on the main window, click on the “TCP/IP” button under the “Link Settings” tab. Set the “TCP port” to 5020. Be sure that the selected TCP port is opened and reachable on the system.

5. Click on “Run” button to start the device.