Procedure - Manual - IIH SDK - Industrial Edge - IIH Software Suite

IIH SDK Documentation

Product
IIH SDK
Product Version
v1.00
Edition
12/2024
Language
en-US (original)
  1. Create your application:

    • Enter the name and description of your app.

    • Define the service name and select "Databus" from the drop-down menu.

  2. Generate the source code and download the .zip file.

  3. Go to "Test your Application" in the navigation.

  4. Start the Databus and Flow Creator services.
    Alt text
  5. Open the Flow Creator UI.
  6. Create the following flow to receive the timestamp.
  7. Start services for app - Go to test workflow and start Databus service and Flow Creator Edge App. Go to Flow Creator and create the flow to receive timestamp.

    • Add the following nodes as shown:

      • Inject (for the timestamp)
      • MQTT in
      • MQTT out
      • Function
      • Debug

      Alt text

    • Configure the timestamp as shown.
      Alt text

    • Configure the function as shown.
      Alt text

    • Edit the MQTT broker node as shown.
      Alt text

    • Provide the following credentials:

      Username - edge
      Password - edge
      

      Alt text

  8. Deploy the flow.
    The timestamp is shown in the debug pane.
    Alt text

  9. Add the business logic to your app for generating triangular wave using timestamp data received from Databus and Flow Creator.

    Source code

    You can find the source code for this example here.

  10. Once the code is ready: To build the image, run the command

    make servicename_build
    
  11. Start the Dockerfile to check if the application is running on the desired port.