Snapex7.Client.connect_to

You're seeing just the function connect_to, go back to Snapex7.Client module for more information.
Link to this function

connect_to(pid, opts \\ [])

View Source

Specs

connect_to(GenServer.server(), [connect_opt()]) ::
  :ok | {:error, map()} | {:error, :einval}

Connect to a S7 server. The following options are available:

  • :active - (true or false) specifies whether data is received as messages or by calling "Data I/O functions".

  • :ip - (string) PLC/Equipment IPV4 Address (e.g., "192.168.0.1")

  • :rack - (int) PLC Rack number (0..7).

  • :slot - (int) PLC Slot number (1..31).

For more info see pg. 96 form Snap7 docs.