fuchsia.bluetooth.host

PROTOCOLS

Host

Defined in fuchsia.bluetooth.host/host.fidl

RequestLowEnergyCentral

Request

NameType
central request<fuchsia.bluetooth.le/Central>

RequestLowEnergyPeripheral

Request

NameType
peripheral request<fuchsia.bluetooth.le/Peripheral>

RequestGattServer

Request

NameType
server request<fuchsia.bluetooth.gatt/Server>

RequestProfile

Request

NameType
profile request<fuchsia.bluetooth.bredr/Profile>

Close

Request

NameType

GetInfo

Request

NameType

Response

NameType
info fuchsia.bluetooth.control/AdapterInfo

SetLocalData

Assigns local data to this host.

Request

NameType
host_data fuchsia.bluetooth.control/HostData

ListDevices

Request

NameType

Response

NameType
devices vector<fuchsia.bluetooth.control/RemoteDevice>

SetLocalName

Request

NameType
local_name string

Response

NameType
status fuchsia.bluetooth/Status

SetDeviceClass

Request

NameType
device_class fuchsia.bluetooth.control/DeviceClass

Response

NameType
status fuchsia.bluetooth/Status

StartDiscovery

Request

NameType

Response

NameType
status fuchsia.bluetooth/Status

StopDiscovery

Request

NameType

Response

NameType
status fuchsia.bluetooth/Status

SetConnectable

Request

NameType
enabled bool

Response

NameType
status fuchsia.bluetooth/Status

SetDiscoverable

Request

NameType
enabled bool

Response

NameType
status fuchsia.bluetooth/Status

Connect

Request

NameType
device_id string

Response

NameType
status fuchsia.bluetooth/Status

Disconnect

Terminate all connections (BR/EDR or LE) to the remote peer with identifier peer_id.

  • request peer_id The identifier of the peer to disconnect.
  • response status Contains an error if either LE or BR/EDR transport fails to disconnect. Contains success when both transports are successfully disconnected or if the peer is already disconnected.

Request

NameType
peer_id string

Response

NameType
status fuchsia.bluetooth/Status

Forget

Deletes a peer from the Bluetooth host. If the peer is connected, it will be disconnected, then OnDeviceUpdated will be sent. OnDeviceRemoved will be sent. device_id will no longer refer to any peer, even if a device with the same address(es) is discovered again.

Returns success after no peer exists that's identified by device_id (even if it didn't exist before Forget), failure if the peer specified by device_id could not be disconnected or deleted and still exists.

Request

NameType
device_id string

Response

NameType
status fuchsia.bluetooth/Status

EnableBackgroundScan

Request

NameType
enabled bool

EnablePrivacy

Enable or disable the LE privacy feature. When enabled, the bt-host device will use a private device address in all LE procedures. When disabled, the public identity address will be used instead (which is the default).

Request

NameType
enabled bool

SetPairingDelegate

Request

NameType
input fuchsia.bluetooth.control/InputCapabilityType
output fuchsia.bluetooth.control/OutputCapabilityType
delegate fuchsia.bluetooth.control/PairingDelegate?

AddBondedDevices

Request

NameType
bonds vector<fuchsia.bluetooth.control/BondingData>

Response

NameType
status fuchsia.bluetooth/Status

OnAdapterStateChanged

Response

NameType
state fuchsia.bluetooth.control/AdapterState

OnDeviceUpdated

Response

NameType
device fuchsia.bluetooth.control/RemoteDevice

OnDeviceRemoved

Response

NameType
identifier string

OnNewBondingData

Response

NameType
data fuchsia.bluetooth.control/BondingData