diff --git a/server/etc/example.conf b/server/etc/example.conf index 73b8193c9..22ce22dc1 100644 --- a/server/etc/example.conf +++ b/server/etc/example.conf @@ -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) + #] } };