Configuration tableΒΆ

local configuration = {
  -- TCP port number the server will be listening on.
  listenPort=4841,

  -- Optionally bind to a specific network interface.
  -- The value '*' means listen on all interfaces.
  listenAddress="localhost",

  -- Optionally set Endpoint URL, the URL that will be returned to
  -- clients when they call GetEndpoints. This parameter may differ
  -- from listenAddress. This is usefull when, for example, server
  -- is working behind load balancer (inside Kubernetes or
  -- Docker). In this case, the server will return the DNS name of
  -- the site instead of the host name of the container.
  -- endpointUrl="opc.tcp://realtimelogic.com:4841",

  -- Size of the buffer used for encoding/decoding messages.
  -- Cannot be less than 8192.
  bufSize = 16384,

  -- Log settings. If all parameters are false, then server will be
  -- working in silent mode without producing logs.
  logging = {
    -- Trace information messages specific to sockets.
    socket = {
      -- Show data sent over sockets. Produces lots of data
      dbgOn = false,
      -- Client connect and disconnect information
      infOn = false,
      -- Socket errors.
      errOn = true
    },
    -- For OPC UA binary protocol experts:
    binary = {
      -- Enable debugging of binary OPC-UA protocol:
      --   * What kind of message received
      --   * Encoding/decoding information
      --   * What services are called
      --   * Tokens refresh process
      dbgOn = false,

      -- Information messages:
      --  * Number of channels created.
      --  * Issued and expired token numbers.
      infOn = true,

      -- Binary protocol errors
      errOn = true
    },

    services = {
      -- Service execution information.
      dbgOn = true,
      -- Service message information.
      infOn = true,
      -- Service errors.
      errOn = true
    }
  }
}