The following Lablink resources are required:
- Configuration Server: config-0.0.1-jar-with-dependencies.jar
- Datapoint Bridge: dpbridge-0.0.1-jar-with-dependencies.jar
- Simple Sync Host: sync-0.0.1-jar-with-dependencies.jar
When :doc:`building from source <installation>`, the corresponding JAR files will be copied to directory target/dependency.
Start the configuration server by executing script :github_blob:`run_config.cmd <examples/0_config/run_config.cmd>` in subdirectory :github_tree:`examples/0_config`. This will make the content of database file test-config.db available via http://localhost:10101.
Note
Once the server is running, you can view the available configurations in a web browser via http://localhost:10101.
.. seealso:: A convenient tool for viewing the content of the database file (and editing it for experimenting with the examples) is `DB Browser for SQLite <https://sqlitebrowser.org/>`_.
An MQTT broker is required for running the example, for instance Eclipse Mosquitto or EMQ.
All relevant scripts can be found in subdirectory :github_tree:`examples/1_async`. To run the example, execute all scripts either in separate command prompt windows or by double-clicking:
- :github_blob:`dpb.cmd <examples/1_async/dpb.cmd>`: runs the data point bridge service, connecting the data source and the plotter
- :github_blob:`source.cmd <examples/1_async/source.cmd>`: runs the data source, which will send data to the plotter
- :github_blob:`plot.cmd <examples/1_async/plot.cmd>`: runs the plotter, which will plot incoming data to the screen (and write one of the inputs to a CSV output file)
Note
The order in which the scripts are started is arbitrary.
All relevant scripts can be found in subdirectory :github_tree:`examples/2_sync`. To run the example, execute all scripts either in separate command prompt windows or by double-clicking:
- :github_blob:`dpb.cmd <examples/2_sync/dpb.cmd>`: runs the data point bridge service, connecting the data source and the plotter
- :github_blob:`source.cmd <examples/2_sync/source.cmd>`: runs the data source, which will send data to the plotter
- :github_blob:`plot.cmd <examples/2_sync/plot.cmd>`: runs the plotter, which will plot incoming data to the screen (and write one of the inputs to a CSV output file)
- :github_blob:`sync.cmd <examples/2_sync/sync.cmd>`: runs the sync host
Note
Start the data point bridge and the clients first (in arbitrary order). Before you start the sync host, make sure that the clients are already connected to the data point bridge (check status messages of data point bridge).