vintage_net_mobile v0.1.1 VintageNetMobile.ATRunner View Source

Send AT command_list to modem

Link to this section Summary

Types

The options for the ATCommand server are

Functions

Returns a specification to start this module under a supervisor.

Send an AT command to the modem

Link to this section Types

Link to this type

opt()

View Source
opt() :: {:speed, non_neg_integer()} | {:tty, String.t()}

The options for the ATCommand server are:

  • :speed - the speed of the serial connection
  • :tty - the tty to send AT command to

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

send(tty, command, wait_for, timeout \\ 500)

View Source
send(binary(), binary(), binary(), non_neg_integer()) :: {:ok, [binary()]}

Send an AT command to the modem

This takes the tty name, the AT command to send, the AT command wait for, and a timeout.

The default timeout is 500 milliseconds

Link to this function

start_link(opts)

View Source
start_link([opt()]) :: GenServer.on_start()