Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 3.13 KB

examples.rst

File metadata and controls

57 lines (36 loc) · 3.13 KB

Prerequisites

Required Lablink resources

The following Lablink resources are required:

When :doc:`building from source <installation>`, the corresponding JAR files will be copied to directory target/dependency.

Starting the configuration server

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/>`_.


MQTT broker

An MQTT broker is required for running the example, for instance Eclipse Mosquitto or EMQ.

Example 1: Asynchronous plotter

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:

Note

The order in which the scripts are started is arbitrary.

Example 2: Synchronous plotter

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:

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).