Drone.Adapters.Tello.Connection (ex_drone v0.1.0)

View Source

UDP connection handler for the Tello drone.

Manages a :gen_udp socket for sending commands and receiving responses from a Tello drone over Wi-Fi.

Summary

Functions

close(socket)

@spec close(port()) :: :ok

default_drone_ip()

default_drone_port()

default_local_port()

default_timeout()

open(opts \\ [])

@spec open(keyword()) :: {:ok, port()} | {:error, term()}

receive_response(socket, timeout)

@spec receive_response(port(), non_neg_integer()) ::
  {:ok, binary()} | {:error, term()}

send_command(socket, command, opts \\ [])

@spec send_command(port(), String.t(), keyword()) :: {:ok, term()} | {:error, term()}