Updated readme.md due to changes modules structure

Signed-off-by: Jonathan Philip Knoblauch <JonathanPhilip.Knoblauch@bosch-si.com>
This commit is contained in:
Jonathan Philip Knoblauch
2016-05-18 16:16:11 +02:00
parent c9248a80db
commit fcd6cef3fb
4 changed files with 16 additions and 31 deletions

View File

@@ -1,29 +1,14 @@
# Eclipse.IoT hawkBit - Example DDI Client
# Eclipse.IoT hawkBit - Example DDI Feign Client
The hawkBit Example DDI Client is an implementation of a simulated device/target that communicates with the hawkBit server via the DDI API.
This modules contains an example feign client implementation based on the DDI API.
# Compile, Run and Getting Started
Powered by [Feign](https://github.com/Netflix/feign).
#### Build hawkbit-example-ddi-client
# Compile
#### Build hawkbit-example-ddi-feign-client
```
$ cd hawkbit/examples/hawkbit-example-ddi-client
$ cd hawkbit/examples/hawkbit-example-ddi-feign-client
$ mvn clean install
```
#### Run hawkBit Example DDI Client
Start the [hawkBit example app](../hawkbit-example-app).
Create an instance of the hawkBit Example DDI Client and run it as thread e.g. in the ExecutorService.
```
DdiExampleClient ddiExampleClient = new DdiExampleClient("http://localhost:8080/", "controllerIdName", "DEFAULT", new DoNotSaveArtifacts());
ExecutorService executorService = Executors.newFixedThreadPool(1);
executorService.execute(ddiExampleClient);
```
#### Getting started with hawkBit Example DDI Client
After the hawkBit Example DDI Client has started it will poll once against the given hawkBit server and form then depending on your polling configuration. After the hawkBit Example DDI Client has polled successful you will see a target in the deployment view regarding the given controller id of your hawkBit Example DDI Client. You can know assign a distributionSet to the target and let the hawkBit Example DDI Client simulated an update.