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()
View Source
adapter_state() :: map()
adapter_state() :: map()
Link to this type
command()
View Source
command()
View Source
command() :: binary()
command() :: binary()
Link to this type
namespace()
View Source
namespace()
View Source
namespace() :: atom()
namespace() :: atom()
Link to this section Functions
Link to this function
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor.
Link to this function
send_command(namespace, command) View Source
Send an HCI command to the Bluetooth HCI.
Link to this function
start_link(opts)
View Source
start_link(opts)
View Source
start_link(keyword()) :: GenServer.server()
start_link(keyword()) :: GenServer.server()
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.