Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Eclipse Ditto Java Client examples

These example shows how to use the Client to manage Things, Attributes/Features, register for changes on your Things and send messages. You can find more information about the Client in our Documentation.

Prerequisites

The following background knowledge is required for this example

Configure

The examples are preconfigured to work with a local Eclipse Ditto running in Docker. Find more information on GitHub.

You can change the configuration to your liking by editing src/main/resources/config.properties. The configured usernames and passwords must be added to the nginx.htpasswd of Eclipse Ditto.

htpasswd nginx.htpasswd user1

Build and run

Start Eclipse Ditto:

docker-compose up -d

Build and run an Example (e.g. RegisterForChanges):

mvn compile exec:java -Dexec.mainClass="org.eclipse.ditto.examples.changes.RegisterForChanges"