Snapex7.Client.command
You're seeing just the function
command
, go back to Snapex7.Client module for more information.
Specs
command(GenServer.server(), term()) :: :ok | {:ok, term()} | {:error, map()} | {:error, :einval}
This function can execute any desired function as a request.
The request
can be a tuple (the first element is an atom according to the desired function to be executed,
and the following elements are the args of the desired function) or an atom (when the desired function
has no arguments), for example:
request = {:connect_to , [ip: "192.168.1.100", rack: 0, slot: 0]},
request = :get_connected