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

updated example configuration for NGSI node type

This commit is contained in:
Steffen Vogel 2015-09-22 15:58:39 +02:00
parent 1a1ea0b938
commit 52b729cd79

View file

@ -32,13 +32,11 @@ stats = 3; # The interval in seconds to print path statistics.
nodes = {
udp_node = { # The dictionary is indexed by the name of the node.
type = "socket", # Type can be one of:
# socket
# opal
# file
# gtfpga
type = "socket", # Type can be one of: socket, opal, file, gtfpga, ngsi
# Start the server without arguments for a list of supported node types.
### The following settings are specific to the socket node-type!! ###
layer = "udp" # Layer can be one of:
# udp Send / recv UDP packets
# ip Send / recv IP packets
@ -54,6 +52,7 @@ nodes = {
type = "socket", # See above.
### The following settings are specific to the socket node-type!! ###
layer = "eth",
local = "*:12002", # It's possible to use an '*' for both the port and address
# in UDP / TCP and IP modes.
@ -75,6 +74,7 @@ nodes = {
type = "opal", # from within an OPAL-RT model.
### The following settings are specific to the opal node-type!! ###
send_id = 1, # It's possible to have multiple send / recv Icons per model
recv_id = 1, # Specify the ID here.
reply = true
@ -83,6 +83,7 @@ nodes = {
type = "file",
### The following settings are specific to the file node-type!! ###
mode = "w+", # The mode in which files should be opened (see open(2))
# You might want to use "a+" to append to a file
@ -107,6 +108,7 @@ nodes = {
type = "gtfpga",
### The following settings are specific to the gtfpga node-type!! ###
slot = "01:00.0", # The PCIe slot location (see first column in 'lspci' output)
id = "1ab8:4005", # The PCIe vendor:device ID (see third column in 'lspci -n' output)
@ -115,17 +117,23 @@ nodes = {
ngsi_node = {
type = "ngsi",
### The following settings are specific to the gtfpga node-type!! ###
endpoint = "http://46.101.131.212:1026", # The HTTP / REST endpoint of the FIRWARE context broker
### The following settings are specific to the ngsi node-type!! ###
mapping = [ # Format: "entityID(entityType).AttributeName(AttributeType)"
"rtds_sub1(voltage3).v1(float)",
"rtds_sub1(voltage3).v2(float)",
"rtds_sub1(voltage3).v3(float)",
"rtds_sub2(power3).p1(float)",
"rtds_sub2(power3).p2(float)",
"rtds_sub2(power3).p3(float)"
endpoint = "http://46.101.131.212:1026",# The HTTP REST API endpoint of the FIRWARE context broker
timeout = 5, # Timeout of HTTP request in seconds (default is 1)
structure = "children", # Structure of published context (default is "flat")
verify_ssl = false, # Verification of SSL server certificates (default is true)
mapping = [ # Example mapping for structure = flat
"rtds_sub1(V2).v2(float)", # Format: "entityId(entityType).AttributeName(AttributeType)"
"rtds_sub2(power).p1(float)"
]
# mapping = [ # Alternative mapping for structure = children
# "fa846ed3-5871-11e5-b0cd-ecf4bb16fe0c(GridSectionDataValue).value(float)", # Index #0
# "1d2c63e4-6130-11e5-9b0d-001c42f23160(GridSectionDataValue).value(float)" # Index #1
# .... # Index #n
# (every line correspondents to one value)
#]
}
};