Skip to content

Config Component

The Config component supports global or shared configuration variables for an Xrt instance. As the configuration variables are common across an Xrt instance, they can also be set via environment variables if not explicitly configured. Support for the Config component is built into every Xrt instance.

Configuration

The following table describes the configuration variables that can be used with the Config component:

Parameter Type Description Valid Values Environment Variable Required
ServerId String Instance identifier If not set defaults to generated UUID string XRT_SERVER_ID N
NodeId String Node identifier If not set defaults to an empty string XRT_NODE_ID N
Timeout unsigned integer Server timeout (period in seconds after which it shuts down) If not set defaults to zero (server runs continuously) XRT_SERVER_TIMEOUT N

Example Configuration

{
  "ServerId":"bacnet-ip-server",
  "NodeId": "linux-1",
  "Timeout": 4
}