Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

BaSyx / Introductory Examples / Java / Step 7

< BaSyx ‎ | Introductory Examples
Revision as of 09:45, 13 September 2022 by Jannik.Fried.iese.fraunhofer.de (Talk | contribs) (Adds MQTT configuration example)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Enable MQTT eventing on the AAS Server and Registry

In order to enable MQTT eventing you have to configure the Docker container.

To do that, you have to configure the mqtt.properties, and the aas.properties file and pass it to the Docker container.

In the aas.properties you have to change the value aas.events as following:

# #############################
# MQTT
# #############################
# Possible to enable MQTT events
#aas.events=NONE
aas.events=MQTT

In the mqtt.properties you have to confgure the server Adress and, if needed, user and pass for authentication. You also have the ability to configure persistency as: File or InMemory.

Note:InMemory is non-persistent

In this example all the .properties files are in the C:\tmp\aas | C:\tmp\registry directory.

To run the AAS Server container with the according configuration, execute:

docker run -v C:\tmp\aas:/usr/share/config --name=aas -p 8081:4001 eclipsebasyx/aas-server:1.2.0

Same with the Registry Server

docker run -v C:\tmp\registry:/usr/share/config --name=registry -p 8082:4000 eclipsebasyx/aas-registry:1.2.0

Available Topics for subscribing

A list of available Topics can be found here

Back to the top