Skip to content

Latest commit

 

History

History
 
 

consumption

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

This directory has the sources for a Java application that uses the HCP IoT Services to interact with an IoT Device. It renders the received data that is stored in the database (that the MMS part of the IoT Services writes to) in an xy plot and lets you send data to the device via the API that the MMS part exposes for this purpose.

UI5 Consumption Example

In order to compile and deploy our example application please get the sources to your system and go to the com.sap.iot.starterkit.ui directory.

Compilation and deployment

  • Build the project with Maven using mvn clean install - it will produce the .war file to be used in the target directory
  • Deploy the .war file using the HCP Cockpit > Java Application > Deploy Application but don't start it yet

UI .war file deployment

  • Select the application and go to Destinations > Import from file (use the provided file iotmms in the com.sap.iot.starterkit.ui/destinations folder) to correctly route requests from your User Interface to the iotmms application providing the MMS Services

Destination configuration

  • Within this process adapt URL, User and Password fields with the information for your account

Destination configuration

  • Select the application and go to Destinations > Import from file (use the provided file iotrdms in the com.sap.iot.starterkit.ui/destinations folder) to correctly route requests from your User Interface to the iotrdms application providing the RDMS Services

Destination configuration

  • Create a new Data Source Binding to ensure that both the iotmms as well as your UI application use the same database schema

Data Source binding

Data Source binding

Finally start your UI application by clicking at the URL for the running application and use it.

Further References

For general information about the development of Java Applications on the HANA Cloud Platform please also refer to