Industrial Edge Data Service Development Kit example app integration
Overview
Documentation
How to start developing Mendix app for Industrial Edge
This how-to demonstrates how to use existing Mendix module to read data from the Data Service using REST API and use them in Mendix application. The data in the Data Service are simulated using the Data service Simulation UI to simulate the behavior of a PLC with changing variables.
Note that this how-to does not use MQTT broker available in the Data Service Development Kit.
Prerequisites
Downloaded Data Service Development Kit
- Mendix account
- Installed Mendix Studio pro 8.18.2
- Installed Docker https://docs.docker.com/get-docker/
- Installed docker-compose https://docs.docker.com/compose/install/
Knowledge prerequisites
- Understand Docker and docker-compose
- Understand Data Service
- Know how to work with Mendix apps
Installation
Note that additional documentaiton is located on the home page of this application example.
Steps:
- Download the Data Service Development Kit
- Run the docker-compose.yml file using docker-compose command.
docker-compose up
- Use this example app to creat new Mendix application and run it
- Configure the Aspects and variables in Simulation UI. Here is a detailed description. https://github.com/industrial-edge/data-service-device-kit-getting-started/blob/main/docs/Visualization_example_value
- Then configure the Data Service UI
- Then navigate to the mendix app home page
- Click on button to update Root asset and its variables.
- Click on button to show graph of a variable
- See the graph updating automatically. It shows last five minutes of generated data.
Debugging
In case you dont see any data comming in the Graph, wait at least 5-10 seconds, then if nothing happens then check whether you can see data incoming in the Data Service.
You can view the graph in Data Service http://localhost:34203 by clicking on the graph icon of the variable in the “preview data” column.