1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

feat: add lab20.conf for socket TCP

Signed-off-by: Jitpanu Maneeratpongsuk <jitpanu.maneeratpongsuk@rwth-aachen.de>
This commit is contained in:
Jitpanu Maneeratpongsuk 2025-02-11 13:03:33 +00:00 committed by Steffen Vogel
parent c76c623b57
commit 54e4c821bc

33
etc/labs/lab20.conf Normal file
View file

@ -0,0 +1,33 @@
nodes = {
tcp_node = {
type = "socket",
layer = "tcp-client",
format = "villas.human",
in = {
address = "tcpbin.com:4242"
},
out = {
address = "tcpbin.com:4242"
}
}
siggen = {
type = "signal"
signal = [ "sine", "pulse", "square" ]
values = 3, # value per sample
rate = 1, # rate of sample
}
}
paths = (
{
in = "siggen"
out = "tcp_node",
hooks = ( { type = "print" } )
},
{
in = "tcp_node", # Receive loopback answer.
hooks = ( { type = "print" } )
}
)