harald v0.2.0 Harald.Transport View Source

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

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Send an HCI command to the Bluetooth HCI.

Start the transport.

Link to this section Types

Link to this type

adapter_state() View Source
adapter_state() :: map()

Link to this type

namespace() View Source
namespace() :: atom()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

send_command(namespace, command) View Source
send_command(namespace(), command()) :: any()

Send an HCI command to the Bluetooth HCI.

Start the transport.

Options

:handlers - additional processes to send Bluetooth events to :namespace - a prefix to what the transport will register its name as

Note: opts is passed through to the init/1 call.