Meshcore.Transport.TCP (Meshcore v0.1.0)

Copy Markdown View Source

TCP transport (e.g. a WiFi companion firmware or a serial-to-TCP bridge).

Options: :host (required), :port (required), :connect_timeout (milliseconds, default 10_000).

Like the Python implementation it detects half-dead connections: if 5 requests in a row were sent without any frame coming back, the link is reported as lost (:tcp_no_response) so the client can reconnect.

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.