Snapex7.Client.connect_to
You're seeing just the function
connect_to
, go back to Snapex7.Client module for more information.
Specs
connect_to(GenServer.server(), [connect_opt()]) :: :ok | {:error, map()} | {:error, :einval}
Connect to a S7 server. The following options are available:
:active
- (true
orfalse
) 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.