Harald.HCI.Transport (harald v0.3.0) View Source

A server to manage lower level transports and parse bluetooth events.

Link to this section Summary

Types

Options

:adapter_opts - adapter_opts(). []. The options provided to the adapter on start. :adapter - adapter(). Required. The transport implementation module. :id - atom(). Required. Uniquely identifies this transport instance to Harald. :subscriber_pids - MapSet.t(). #MapSet<[]>. The pids that received data and events will be sent to.

Functions

Returns a specification to start this module under a supervisor.

Returns the registered name derived from id.

Start the transport.

Link to this section Types

Specs

adapter() :: module()

Specs

adapter_opts() :: keyword(any())

Specs

id() :: atom()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Returns the registered name derived from id.

Link to this function

publish(transport_pid, data_or_event)

View Source

Specs

start_link(start_link_opts()) :: GenServer.on_start()

Start the transport.

Link to this function

subscribe(id, pid \\ self())

View Source