ClientOpts#

class ClientOpts(name, address, port, timeunit=1)[source]#

Bases: object

Client Options. A helper class to correctly define client options. Used for the setup of do_mpc.opcua.RTClient.

Parameters:
  • name (str) – Name of the client.

  • address (str) – IP address of the target server.

  • port (int) – Used port number of the target server.

  • timeunit (int) – Time unit factor to convert the time unit used by the dynamic system into seconds. The default value is 1 for seconds. Use 60 for minutes, 3600 for hours, and so on.

Methods#

Attributes#

timeunit#

ClientOpts.timeunit: int = 1#

name#

ClientOpts.name: str#

IP address of the target server.

address#

ClientOpts.address: str#

port#

ClientOpts.port: int#