Meshcore.Transport.Serial (Meshcore v0.1.0)

Copy Markdown View Source

Serial (USB/UART) transport built on circuits_uart.

circuits_uart is an optional dependency – add it to your own mix.exs to use serial connections:

{:circuits_uart, "~> 1.5"}

Options: :port (required, e.g. "/dev/ttyUSB0"), :baudrate (default 115200), :dtr (default true), :rts (default false) and :cx_delay (milliseconds to wait after opening, default 100).

Some boards (e.g. Heltec V2) reset when DTR is asserted – if you get no response try dtr: false. Meshcore.create_serial/2 retries automatically with the inverted DTR.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.