1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/etc/shmem_mqtt.conf
Steffen Vogel abed592b9d Harmonize formatting and style of example configuration files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-04-10 09:38:57 +02:00

82 lines
1.8 KiB
Text

# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
nodes = {
sig = {
type = "signal"
signal = "sine"
}
dpsim = {
enabled = false,
type = "shmem",
in = {
# Name of shared memory segment for sending side
name = "/dpsim-villas",
hooks = (
{ type = "stats" }
),
signals = {
# count = 2,
# type = "float"
count = 1,
type = "complex"
}
},
out = {
# Name of shared memory segment for receiving side
name = "/villas-dpsim"
signals = {
count = 1,
type = "complex"
}
},
# Length of the queues
queuelen = 1024,
# We can busy-wait or use pthread condition variables for synchronizations
polling = true,
},
broker = {
type = "mqtt",
format = "json",
#host = "localhost",
host = "137.226.133.157"
port = 1883,
retain = false,
out = {
publish = "dpsim->dist"
}
in = {
subscribe = "dist->dpsim",
signals = {
count = 1,
type = "complex"
}
}
}
}
paths = (
{
enabled = false
in = "sig",
out = "broker",
# Condition of which/how many source nodes have to receive
# at least one sample for the path to be triggered
mode = "any",
# reverse = true
}
# ,{
# in = "nano";
# out = "dpsim";
# mode = "any"
# }
)