rockbox/bluetooth

Bluetooth device pairing and connection (Linux only).

Values

pub fn connect(
  client: rockbox.Client,
  address: String,
) -> Result(Nil, error.Error)
pub fn devices(
  client: rockbox.Client,
) -> Result(List(types.BluetoothDevice), error.Error)

Known/paired devices.

pub fn disconnect(
  client: rockbox.Client,
  address: String,
) -> Result(Nil, error.Error)
pub fn scan(
  client: rockbox.Client,
  timeout_secs: option.Option(Int),
) -> Result(List(types.BluetoothDevice), error.Error)

Trigger an active scan. timeout_secs of option.None uses the firmware default.

Search Document