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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.7 KiB
Text
Raw Permalink Normal View History

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