<br />

Added: 7

## **PROTOCOLS**

## AdvertisedPeripheral

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=132)*

Protocol that is valid for the duration of advertising. The caller can close
the protocol to stop advertising. If the system internally stops advertising
for any reason, the protocol will be closed to communicate this to the
client.

<br />

### OnConnected

Called when a remote LE central connects to this peripheral when
connectable advertising is enabled via
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Peripheral.Advertise](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Peripheral.Advertise). When this call is made,
the system has paused advertising, and will not continue until it
receives a response.

The returned [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) protocol can be used to
interact with the peer. It also represents a peripheral's ownership over
the connection: the client can drop the protocol to request a
disconnection. Similarly, the protocol is closed by the system to
indicate that the connection to the peer has been lost.

- request `peer` Information about the central that initiated the connection.
- request `connection` Represents the connection.

<!-- -->

- response An empty response should be sent to acknowledge the connection and resume advertising (for flow control).

#### Request

| Name | Type |
|---|---|
| `peer` | `Peer` |
| `connection` | `client_end:Connection` |

#### Response

\<EMPTY\>

## AdvertisingHandle

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=126)*

Capability that is valid for the duration of advertising. The caller can close the handle to
stop advertising. If the system internally stops advertising for any reason, the handle will be
closed to communicate this to the client.

<br />

## Central

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=100)*

### Connect

Connect to the peer with the given identifier.

The requested [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) represents the
client's interest on the LE connection to the peer. Closing the channel
removes interest, but may not result in disconnection if another client
holds a valid [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) to the same peer.

The [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) `handle` will be closed by the
system if the connection to the peer is lost or an error occurs.

The following epitaphs may be sent by the server on error:

- `INVALID_ARGS`: Some of the parameters are invalid.

- `ALREADY_BOUND`: A Connection to the peer already exists for this Central. The existing
  Connection should be used.

- `NOT_CONNECTED`: A connection could not be established.

- `CONNECTION_RESET`: The peer disconnected.

- request `id` Identifier of the peer to initiate a connection to.

- request `options` Options used to configure the connection.

- request `handle` Handle that remains valid for the duration of this
  connection.

Added: 24

#### Request

| Name | Type |
|---|---|
| `id` | `fuchsia.bluetooth/PeerId` |
| `options` | `ConnectionOptions` |
| `handle` | `server_end:Connection` |

### ConnectPeripheral

Creates a connection to the peripheral device with the given identifier.
Returns the status of the operation in `status`.

On success, `gatt_client` will be bound and can be used for GATT client
role procedures. On failure, `gatt_client` will be closed and `status` will
indicate an error.

**DEPRECATED**- Use Connect instead

#### Request

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |
| `options` | `ConnectionOptions` |
| `gatt_client` | `server_end:fuchsia.bluetooth.gatt/Client` |

#### Response

| Name | Type |
|---|---|
| `status` | `fuchsia.bluetooth/Status` |

### CreateConnectedIsochronousGroup

Create a new Connected Iosochronous Group (CIG) with the specified parameters. This
operation is only valid when operating in the Central role for a connection.

If the Central channel is closed before the CIG is explicitly removed, the group will
be removed and disconnected.

On failure, returns an error code, see `CreateCigError`. On success, returns a unique
id allocated by the host.
Added: 27

#### Request

| Name | Type |
|---|---|
| `payload` | `CentralCreateConnectedIsochronousGroupRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Central_CreateConnectedIsochronousGroup_Result` |

### DisconnectPeripheral

Disconnects this Central's connection to the peripheral with the given identifier.

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |

#### Response

| Name | Type |
|---|---|
| `status` | `fuchsia.bluetooth/Status` |

### GetPeripheral

**This method is not implemented by the Fuchsia core stack- TODO(https://fxbug.dev/42087303)**

Returns information about a single peripheral that is known to the system from previous scan,
connection, and/or bonding procedures based on its unique identifier. Returns null if
`identifier` is not recognized.

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |

#### Response

| Name | Type |
|---|---|
| `peripheral` | `RemoteDevice?` |

### GetPeripherals

Returns the list of peripherals that are known to the system from previous scan, connection,
and/or bonding procedures. The results can be filtered based on service UUIDs that are known to
be present on the peripheral.

This method only returns peripherals (i.e. connectable devices).

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `service_uuids` | `vector<fuchsia.bluetooth/UuidString>?` |

#### Response

| Name | Type |
|---|---|
| `peripherals` | `vector<RemoteDevice>` |

### ListenL2cap

Register a listener for incoming channels. The registry will assign a
PSM value that is unique for the local device, as well as open a
[ChannelListener](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.le.md.txt#ChannelListener) for accepting incoming channels. In the unlikely
event that all PSMs have been assigned, this call will fail with
`ZX_ERR_NO_RESOURCES`.

Note that the method of service discovery or advertising is defined by
the service or protocol, so it is the responsibility of the caller to
communicate the assigned PSM to any clients.

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistryListenL2capRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistry_ListenL2cap_Result` |

### OnDeviceDiscovered

Called for each peripheral/broadcaster that is discovered during a scan session. `rssi`
contains the received signal strength of the advertising packet that generated this event, if
available.

**DEPRECATED**

#### Response

| Name | Type |
|---|---|
| `device` | `RemoteDevice` |

### OnPeripheralDisconnected

Called when this Central's connection to a peripheral with the given identifier is terminated.

**DEPRECATED**

#### Response

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |

### OnScanStateChanged

Called when the scan state changes, e.g. when a scan session terminates due to a call to
Central.StopScan() or another unexpected condition.

**DEPRECATED**

#### Response

| Name | Type |
|---|---|
| `scanning` | `bool` |

### Scan

Scans for nearby LE peripherals and broadcasters. If the scan cannot be
initiated, then `result_watcher` will be closed with an epitaph.

A Central client is allowed to have only one active scan at a time.
Accordingly, only one Scan request can be outstanding at a time.
Additional calls to Scan will fail.

The lifetime of the scan session is tied to the `result_watcher`
protocol provided. The scan will be stopped if the channel is closed.

Once a scan is started, the [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[ScanResultWatcher](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#ScanResultWatcher)
can be used to watch for scan results.

- request `options` Options used to configure the scan session.
- request `result_watcher` Protocol that remains valid for the duration of this scan session.

<!-- -->

- response An empty response will be sent to acknowledge the scan has stopped.

The following epitaphs may be sent by the server on error:

- error `ALREADY_EXISTS`: A scan is already in progress. Each `Central` protocol is only allowed 1 active scan.
- error `INVALID_ARGS`: Some of the scan `options` are invalid. See the `ScanOptions` documentation.
- error `INTERNAL`: An internal error occurred and a scan could not be started.

#### Request

| Name | Type |
|---|---|
| `options` | `ScanOptions` |
| `result_watcher` | `server_end:ScanResultWatcher` |

#### Response

\<EMPTY\>

### StartScan

Initiates a scan session for nearby peripherals and broadcasters. Discovered devices will be
reported via CentralDelegate.OnDeviceDiscovered(). If a scan session is already in progress,
`filter` will replace the existing session's filter.

If `filter` is null or empty (i.e. none of its fields has been populated) then the delegate
will be notified for all discoverable devices that are found. This is not recommended; clients
should generally filter results by at least one of `filter.service_uuids`,
`filter.service_data`, and/or `filter.manufacturer_identifier`.

**DEPRECATED**- Use Scan instead

#### Request

| Name | Type |
|---|---|
| `filter` | `ScanFilter?` |

#### Response

| Name | Type |
|---|---|
| `status` | `fuchsia.bluetooth/Status` |

### StopScan

Terminate a previously started scan session.

**DEPRECATED**

#### Request

\<EMPTY\>

### SyncToPeriodicAdvertising

Synchronize to a periodic advertising train. Reports will be delivered via the
`PeriodicAdvertisingSync` protocol.
Added: 28

#### Request

| Name | Type |
|---|---|
| `payload` | `CentralSyncToPeriodicAdvertisingRequest` |

## ChannelListener

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=54)*

Represents a service or protocol that accepts incoming channel requests.
Incoming channel requests for the associated PSM will be connected via this
protocol. Closing this protocol will also cease accepting any incoming
channel requests, but existing established channels will not be affected.
Additionally, once this protocol is closed the implementation is free to
reuse the PSM that was previously assigned for this instance.
Added: 24

<br />

### Accept

Removed: 31

#### Request

| Name | Type |
|---|---|
| `channel` | `client_end:fuchsia.bluetooth/Channel` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListener_Accept_Result` |

### Connected

Called for each successful incoming channel connection.
Added: 31

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelListenerConnectedRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListener_Connected_Result` |

## ChannelListenerRegistry

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=81)*

Represents the ability to register and accept incoming connections on
connection oriented channels.
Added: 24

<br />

### ListenL2cap

Register a listener for incoming channels. The registry will assign a
PSM value that is unique for the local device, as well as open a
[ChannelListener](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.le.md.txt#ChannelListener) for accepting incoming channels. In the unlikely
event that all PSMs have been assigned, this call will fail with
`ZX_ERR_NO_RESOURCES`.

Note that the method of service discovery or advertising is defined by
the service or protocol, so it is the responsibility of the caller to
communicate the assigned PSM to any clients.

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistryListenL2capRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistry_ListenL2cap_Result` |

## ChannelOffloadExt

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=30)*

Protocol extension for a `bt.Channel`. This is typically provided by or to
privileged clients alongside a `bt.Channel`. This protocol can be closed
before or after StartOffload has returned with no effect.
Added: 31

<br />

### StartOffload

StartOffload MUST be called before Channel.Receive(). The offloaded
channel will have 0 RX credits given to the peer to prevent the peer
from sending data until the offload processor is ready. This method may
be called a maximum of one time.

The following errors may be returned:

- error `BAD_STATE` : Channel.Receive() has already been called or StartOffload() has already been called.
- error `INTERNAL`: An internal error occurred and the channel could not be offloaded.

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelOffloadExtStartOffloadRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelOffloadExt_StartOffload_Result` |

## CodecDelay

*Defined in [fuchsia.bluetooth.le/codec_delay.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/codec_delay.fidl;l=13)*

This protocol allows us to retrieve controller local delay values. It is not intended to be
used stand-alone, but to be composed into protocols that need access to this information.
Added: 24

<br />

### GetCodecLocalDelayRange

Retrieve the range of controller delay for the codec specified with the provided stream
attributes.

On success, returns the minimum and maximum allowed delay.

Returns ZX_ERR_NOT_SUPPORTED if reading the delay is not supported.
Returns ZX_ERR_INTERNAL for all other failures.

#### Request

| Name | Type |
|---|---|
| `payload` | `CodecDelayGetCodecLocalDelayRangeRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `CodecDelay_GetCodecLocalDelayRange_Result` |

## ConnectedIsochronousGroup

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=309)*
Added: 27

<br />

### EstablishStreams

Connect one or more Isochronous streams. Each CIS is established with the peer specified
in the parameters. On successful initiation of the operation, an OnEstablished() event will
be sent on the IsochronousStream.

Only one `EstablishStreams` call may be active at a time. Calling `EstablishStreams` while
another is pending will result in the channel being closed with `ZX_ERR_BAD_STATE`.

On error, no CISes are established and an appropriate `EstablishStreamsError` code will be
returned.

Otherwise, this call returns once each CIS specified has connected.

#### Request

| Name | Type |
|---|---|
| `payload` | `ConnectedIsochronousGroupEstablishStreamsRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ConnectedIsochronousGroup_EstablishStreams_Result` |

### Remove

Remove this CIG. Associated streams will be closed. This protocol will be closed after
all of the associated streams have closed and the group has been removed.

#### Request

\<EMPTY\>

## Connection

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=134)*

Protocol that represents the connection to a peer. This can be used to interact with GATT
services and establish L2CAP channels.

This lifetime of this capability is tied to that of the LE connection it represents. Closing the
channel results in a disconnection if no other clients hold a Connection to the same peer.

<br />

### AcceptCis

Accept a future CIS request from the peer with the specified CIG/CIS values. All
CIS requests that have not explicitly been allowed will be rejected.

The provided IsochronousStream will be used for future notification of established
connections.

The host may wait for multiple incoming connections simultaneously, although each
must have a combination of CIG/CIS values that is unique to this connection.

If we are not operating in the peripheral role in this connection, connection_stream
will be closed with a ZX_ERR_NOT_SUPPORTED epitaph.

If we are already waiting for another connection with the same combination of CIG/CIS
values, connection_stream will be closed with a ZX_ERR_INVALID_ARGS epitaph.
Added: 24

#### Request

| Name | Type |
|---|---|
| `payload` | `ConnectionAcceptCisRequest` |

### AcceptPeriodicAdvertisingSyncTransfer

Accept the next Periodic Advertising Sync Transfer from the peer. A response will be sent
when the host is ready to accept the transfer. Only one request can be pending at a time.
Added: 28

#### Request

| Name | Type |
|---|---|
| `payload` | `ConnectionAcceptPeriodicAdvertisingSyncTransferRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Connection_AcceptPeriodicAdvertisingSyncTransfer_Result` |

### ConnectL2cap

Connect to an L2CAP LE connection-oriented channel.
Added: 24

#### Request

| Name | Type |
|---|---|
| `payload` | `ConnectionConnectL2capRequest` |

### GetCodecLocalDelayRange

Retrieve the range of controller delay for the codec specified with the provided stream
attributes.

On success, returns the minimum and maximum allowed delay.

Returns ZX_ERR_NOT_SUPPORTED if reading the delay is not supported.
Returns ZX_ERR_INTERNAL for all other failures.

#### Request

| Name | Type |
|---|---|
| `payload` | `CodecDelayGetCodecLocalDelayRangeRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `CodecDelay_GetCodecLocalDelayRange_Result` |

### RequestGattClient

The following epitaphs may be sent by the server on error:

- `ZX_ERR_ALREADY_BOUND`: A Client server has already been bound in this Connection protocol. The existing Client should be used.

Added: 24

#### Request

| Name | Type |
|---|---|
| `client` | `server_end:fuchsia.bluetooth.gatt2/Client` |

### TransferPeriodicAdvertisingSync

Send synchronization information for a periodic advertising train identified by `sync_id` to
the connected peer.
Added: 28

#### Request

| Name | Type |
|---|---|
| `payload` | `ConnectionTransferPeriodicAdvertisingSyncRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Connection_TransferPeriodicAdvertisingSync_Result` |

## IsochronousStream

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=220)*
Added: 24

<br />

### OnEstablished

Provide notification when a CIS is established, as initiated by a Central
(from ConnectedIsochronousGroup/EstablishStreams), or a Peripheral
(from Connection/AcceptCis).

#### Response

| Name | Type |
|---|---|
| `payload` | `IsochronousStreamOnEstablishedRequest` |

### Read

Receive data from an output (controller =\> host) ISO stream that has been established and
set up. Designed to be used with a hanging get pattern.

Can be invoked before the ISO data stream has been established and set up, but will not
return until after it has been set up and data has been received.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `IsochronousStream_Read_Result` |

### SetupDataPath

Create an isochronous data path with the specified parameters. Only in-band (HCI) ISO
transport is currently supported.

Returns ZX_ERR_ALREADY_EXISTS if a ISO stream has already been created for this
direction.

Returns ZX_ERR_BAD_STATE if issued on a peripheral before a CIS request has been
accepted.

Returns ZX_ERR_INVALID_ARGS if the codec arguments are invalid or outside of the
controller's supported range.

#### Request

| Name | Type |
|---|---|
| `payload` | `IsochronousStreamSetupDataPathRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `IsochronousStream_SetupDataPath_Result` |

### Write

Send data to an established ISO stream (host =\> controller).

Returns ZX_ERR_INTERNAL for any errors encountered.
Added: 27

#### Request

| Name | Type |
|---|---|
| `payload` | `IsochronousStreamWriteRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `IsochronousStream_Write_Result` |

## PeriodicAdvertisingSync

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=65)*

Closed by the server when the sync fails to be established or is lost.
Added: 28

<br />

### Cancel

The server will end the synchronization and then close the protocol.
Synchronization will not be cancelled if other clients are synchronized to the same Periodic
Advertisement.
Synchronization can also be cancelled by closing the protocol on the client end.

#### Request

\<EMPTY\>

### OnError

Sent either when synchronization fails to be established or when synchronization is lost (after `OnEstablished`).
The protocol will close after sending this event.

#### Response

| Name | Type |
|---|---|
| `error` | `PeriodicAdvertisingSyncError` |

### OnEstablished

Sent once when the sync is established.

#### Response

| Name | Type |
|---|---|
| `payload` | `PeriodicAdvertisingSyncOnEstablishedRequest` |

### SyncToSubevents

Synchronize to subevents of this periodic advertisement.

- error FAILED: The synchronization failed.

#### Request

| Name | Type |
|---|---|
| `payload` | `PeriodicAdvertisingSyncSyncToSubeventsRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `PeriodicAdvertisingSync_SyncToSubevents_Result` |

### WatchAdvertisingReport

Returns the next advertising report(s). Hangs until the next advertisement is received.
Only one call may be pending at a time.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `PeriodicAdvertisingSync_WatchAdvertisingReport_Result` |

## Peripheral

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=157)*

### Advertise

Start advertising continuously as a LE peripheral. If advertising cannot
be initiated then `advertised_peripheral` will be closed and an error
will be returned.

This method may be called any number of times. To reconfigure an
advertisement, first close the original advertisement and then initiate
a new advertisement after an empty response is returned.

If the client closes its end of the
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisedPeripheral](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisedPeripheral) channel,
advertising will be stopped. If the handle is closed before the request
is fulfilled, advertising may be briefly enabled before it is
terminated. AdvertisedPeripheral lifetime is bounded by the lifetime of
the Peripheral protocol.

- request `parameters` Parameters used while configuring the advertising instance.
- request `advertised_peripheral` Protocol that remains valid for the duration of this advertising session.

<!-- -->

- response An empty response will be sent when the advertisement is successfully stopped (due to release of the `advertised_peripheral` protocol). To prevent overlapping similar advertisements and transient errors with limited advertising resources, waiting for a response is recommended before calling `Advertise` again.

<!-- -->

- error If an error occurs, `advertised_peripheral` will be closed and a `PeripheralError` will be returned.

#### Request

| Name | Type |
|---|---|
| `parameters` | `AdvertisingParameters` |
| `advertised_peripheral` | `client_end:AdvertisedPeripheral` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Peripheral_Advertise_Result` |

### ListenL2cap

Register a listener for incoming channels. The registry will assign a
PSM value that is unique for the local device, as well as open a
[ChannelListener](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.le.md.txt#ChannelListener) for accepting incoming channels. In the unlikely
event that all PSMs have been assigned, this call will fail with
`ZX_ERR_NO_RESOURCES`.

Note that the method of service discovery or advertising is defined by
the service or protocol, so it is the responsibility of the caller to
communicate the assigned PSM to any clients.

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistryListenL2capRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistry_ListenL2cap_Result` |

### OnPeerConnected

Event delivered when a remote LE central initiates a connection to this Peripheral when
connectable advertising is enabled via
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Peripheral.StartAdvertising](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Peripheral.StartAdvertising).

The returned [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) handle can be used to interact with the
peer. It also represents a peripheral's ownership over the connection: the client can drop
the handle to request a disconnection. Similarly, the handle is closed by the system to
indicate that the connection to the peer has been lost.

- request `peer` Information about the central that initiated the connection.
- request `connection` Represents the connection.

**DEPRECATED**- Use AdvertisedPeripheral.OnConnected instead

#### Response

| Name | Type |
|---|---|
| `peer` | `Peer` |
| `connection` | `client_end:Connection` |

### StartAdvertising

Start advertising as a LE peripheral. An empty response is sent to indicate when advertising
has successfully initiated. If advertising cannot be initiated, then the response will
contain a [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[PeripheralError](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#PeripheralError).

This method can get called any number of times and successive calls can be made to
reconfigure the advertising parameters. However only the most recent
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingHandle](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingHandle) will remain valid.

An instance of [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Peripheral](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Peripheral) can only have one active advertisement at
a time. Clients must obtain multiple Peripheral instances for multiple simultaneous
advertisements.

If the client closes its end of the [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingHandle](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingHandle) channel,
advertising will be stopped. If the handle is closed before the request is fulfilled,
advertising will be briefly enabled before it is terminated.

- request `parameters` Parameters used while configuring the advertising instance.
- request `handle` Handle that remains valid for the duration of this advertising session.

<!-- -->

- error Returns a [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[PeripheralError](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#PeripheralError) if advertising cannot be initiated. In this case the `handle` will be closed.

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `parameters` | `AdvertisingParameters` |
| `handle` | `server_end:AdvertisingHandle` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Peripheral_StartAdvertising_Result` |

## PrivilegedCentral

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=299)*

Privileged version of the Central protocol, providing advanced features
like socket offload. This protocol should only be routed to trusted and
system components due to sensitive information and capabilities it composes.
Added: 31

<br />

### Connect

Connect to the peer with the given identifier.

The requested [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) represents the
client's interest on the LE connection to the peer. Closing the channel
removes interest, but may not result in disconnection if another client
holds a valid [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) to the same peer.

The [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) `handle` will be closed by the
system if the connection to the peer is lost or an error occurs.

The following epitaphs may be sent by the server on error:

- `INVALID_ARGS`: Some of the parameters are invalid.

- `ALREADY_BOUND`: A Connection to the peer already exists for this Central. The existing
  Connection should be used.

- `NOT_CONNECTED`: A connection could not be established.

- `CONNECTION_RESET`: The peer disconnected.

- request `id` Identifier of the peer to initiate a connection to.

- request `options` Options used to configure the connection.

- request `handle` Handle that remains valid for the duration of this
  connection.

Added: 24

#### Request

| Name | Type |
|---|---|
| `id` | `fuchsia.bluetooth/PeerId` |
| `options` | `ConnectionOptions` |
| `handle` | `server_end:Connection` |

### ConnectPeripheral

Creates a connection to the peripheral device with the given identifier.
Returns the status of the operation in `status`.

On success, `gatt_client` will be bound and can be used for GATT client
role procedures. On failure, `gatt_client` will be closed and `status` will
indicate an error.

**DEPRECATED**- Use Connect instead

#### Request

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |
| `options` | `ConnectionOptions` |
| `gatt_client` | `server_end:fuchsia.bluetooth.gatt/Client` |

#### Response

| Name | Type |
|---|---|
| `status` | `fuchsia.bluetooth/Status` |

### CreateConnectedIsochronousGroup

Create a new Connected Iosochronous Group (CIG) with the specified parameters. This
operation is only valid when operating in the Central role for a connection.

If the Central channel is closed before the CIG is explicitly removed, the group will
be removed and disconnected.

On failure, returns an error code, see `CreateCigError`. On success, returns a unique
id allocated by the host.
Added: 27

#### Request

| Name | Type |
|---|---|
| `payload` | `CentralCreateConnectedIsochronousGroupRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Central_CreateConnectedIsochronousGroup_Result` |

### DisconnectPeripheral

Disconnects this Central's connection to the peripheral with the given identifier.

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |

#### Response

| Name | Type |
|---|---|
| `status` | `fuchsia.bluetooth/Status` |

### GetPeripheral

**This method is not implemented by the Fuchsia core stack- TODO(https://fxbug.dev/42087303)**

Returns information about a single peripheral that is known to the system from previous scan,
connection, and/or bonding procedures based on its unique identifier. Returns null if
`identifier` is not recognized.

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |

#### Response

| Name | Type |
|---|---|
| `peripheral` | `RemoteDevice?` |

### GetPeripherals

Returns the list of peripherals that are known to the system from previous scan, connection,
and/or bonding procedures. The results can be filtered based on service UUIDs that are known to
be present on the peripheral.

This method only returns peripherals (i.e. connectable devices).

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `service_uuids` | `vector<fuchsia.bluetooth/UuidString>?` |

#### Response

| Name | Type |
|---|---|
| `peripherals` | `vector<RemoteDevice>` |

### ListenL2cap

Register a listener for incoming channels. The registry will assign a
PSM value that is unique for the local device, as well as open a
[ChannelListener](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.le.md.txt#ChannelListener) for accepting incoming channels. In the unlikely
event that all PSMs have been assigned, this call will fail with
`ZX_ERR_NO_RESOURCES`.

Note that the method of service discovery or advertising is defined by
the service or protocol, so it is the responsibility of the caller to
communicate the assigned PSM to any clients.

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistryListenL2capRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistry_ListenL2cap_Result` |

### OnDeviceDiscovered

Called for each peripheral/broadcaster that is discovered during a scan session. `rssi`
contains the received signal strength of the advertising packet that generated this event, if
available.

**DEPRECATED**

#### Response

| Name | Type |
|---|---|
| `device` | `RemoteDevice` |

### OnPeripheralDisconnected

Called when this Central's connection to a peripheral with the given identifier is terminated.

**DEPRECATED**

#### Response

| Name | Type |
|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` |

### OnScanStateChanged

Called when the scan state changes, e.g. when a scan session terminates due to a call to
Central.StopScan() or another unexpected condition.

**DEPRECATED**

#### Response

| Name | Type |
|---|---|
| `scanning` | `bool` |

### Scan

Scans for nearby LE peripherals and broadcasters. If the scan cannot be
initiated, then `result_watcher` will be closed with an epitaph.

A Central client is allowed to have only one active scan at a time.
Accordingly, only one Scan request can be outstanding at a time.
Additional calls to Scan will fail.

The lifetime of the scan session is tied to the `result_watcher`
protocol provided. The scan will be stopped if the channel is closed.

Once a scan is started, the [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[ScanResultWatcher](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#ScanResultWatcher)
can be used to watch for scan results.

- request `options` Options used to configure the scan session.
- request `result_watcher` Protocol that remains valid for the duration of this scan session.

<!-- -->

- response An empty response will be sent to acknowledge the scan has stopped.

The following epitaphs may be sent by the server on error:

- error `ALREADY_EXISTS`: A scan is already in progress. Each `Central` protocol is only allowed 1 active scan.
- error `INVALID_ARGS`: Some of the scan `options` are invalid. See the `ScanOptions` documentation.
- error `INTERNAL`: An internal error occurred and a scan could not be started.

#### Request

| Name | Type |
|---|---|
| `options` | `ScanOptions` |
| `result_watcher` | `server_end:ScanResultWatcher` |

#### Response

\<EMPTY\>

### StartScan

Initiates a scan session for nearby peripherals and broadcasters. Discovered devices will be
reported via CentralDelegate.OnDeviceDiscovered(). If a scan session is already in progress,
`filter` will replace the existing session's filter.

If `filter` is null or empty (i.e. none of its fields has been populated) then the delegate
will be notified for all discoverable devices that are found. This is not recommended; clients
should generally filter results by at least one of `filter.service_uuids`,
`filter.service_data`, and/or `filter.manufacturer_identifier`.

**DEPRECATED**- Use Scan instead

#### Request

| Name | Type |
|---|---|
| `filter` | `ScanFilter?` |

#### Response

| Name | Type |
|---|---|
| `status` | `fuchsia.bluetooth/Status` |

### StopScan

Terminate a previously started scan session.

**DEPRECATED**

#### Request

\<EMPTY\>

### SyncToPeriodicAdvertising

Synchronize to a periodic advertising train. Reports will be delivered via the
`PeriodicAdvertisingSync` protocol.
Added: 28

#### Request

| Name | Type |
|---|---|
| `payload` | `CentralSyncToPeriodicAdvertisingRequest` |

## PrivilegedPeripheral

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=247)*

Privileged version of the Peripheral protocol.
This protocol should only be routed to trusted and system components. Using this protocol will
enable the client to break normal privacy restrictions which could leak information about the
location or owner of the device.

Use cases which reveal information are noted in documentation and marked as only available
through PrivilegedPeripheral, and are an error if used through Peripheral.
Added: 24

<br />

### Advertise

Start advertising continuously as a LE peripheral. If advertising cannot
be initiated then `advertised_peripheral` will be closed and an error
will be returned.

This method may be called any number of times. To reconfigure an
advertisement, first close the original advertisement and then initiate
a new advertisement after an empty response is returned.

If the client closes its end of the
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisedPeripheral](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisedPeripheral) channel,
advertising will be stopped. If the handle is closed before the request
is fulfilled, advertising may be briefly enabled before it is
terminated. AdvertisedPeripheral lifetime is bounded by the lifetime of
the Peripheral protocol.

- request `parameters` Parameters used while configuring the advertising instance.
- request `advertised_peripheral` Protocol that remains valid for the duration of this advertising session.

<!-- -->

- response An empty response will be sent when the advertisement is successfully stopped (due to release of the `advertised_peripheral` protocol). To prevent overlapping similar advertisements and transient errors with limited advertising resources, waiting for a response is recommended before calling `Advertise` again.

<!-- -->

- error If an error occurs, `advertised_peripheral` will be closed and a `PeripheralError` will be returned.

#### Request

| Name | Type |
|---|---|
| `parameters` | `AdvertisingParameters` |
| `advertised_peripheral` | `client_end:AdvertisedPeripheral` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Peripheral_Advertise_Result` |

### ListenL2cap

Register a listener for incoming channels. The registry will assign a
PSM value that is unique for the local device, as well as open a
[ChannelListener](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth.le.md.txt#ChannelListener) for accepting incoming channels. In the unlikely
event that all PSMs have been assigned, this call will fail with
`ZX_ERR_NO_RESOURCES`.

Note that the method of service discovery or advertising is defined by
the service or protocol, so it is the responsibility of the caller to
communicate the assigned PSM to any clients.

#### Request

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistryListenL2capRequest` |

#### Response

| Name | Type |
|---|---|
| `payload` | `ChannelListenerRegistry_ListenL2cap_Result` |

### OnPeerConnected

Event delivered when a remote LE central initiates a connection to this Peripheral when
connectable advertising is enabled via
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Peripheral.StartAdvertising](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Peripheral.StartAdvertising).

The returned [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Connection](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Connection) handle can be used to interact with the
peer. It also represents a peripheral's ownership over the connection: the client can drop
the handle to request a disconnection. Similarly, the handle is closed by the system to
indicate that the connection to the peer has been lost.

- request `peer` Information about the central that initiated the connection.
- request `connection` Represents the connection.

**DEPRECATED**- Use AdvertisedPeripheral.OnConnected instead

#### Response

| Name | Type |
|---|---|
| `peer` | `Peer` |
| `connection` | `client_end:Connection` |

### StartAdvertising

Start advertising as a LE peripheral. An empty response is sent to indicate when advertising
has successfully initiated. If advertising cannot be initiated, then the response will
contain a [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[PeripheralError](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#PeripheralError).

This method can get called any number of times and successive calls can be made to
reconfigure the advertising parameters. However only the most recent
[fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingHandle](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingHandle) will remain valid.

An instance of [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[Peripheral](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#Peripheral) can only have one active advertisement at
a time. Clients must obtain multiple Peripheral instances for multiple simultaneous
advertisements.

If the client closes its end of the [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingHandle](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingHandle) channel,
advertising will be stopped. If the handle is closed before the request is fulfilled,
advertising will be briefly enabled before it is terminated.

- request `parameters` Parameters used while configuring the advertising instance.
- request `handle` Handle that remains valid for the duration of this advertising session.

<!-- -->

- error Returns a [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[PeripheralError](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#PeripheralError) if advertising cannot be initiated. In this case the `handle` will be closed.

**DEPRECATED**

#### Request

| Name | Type |
|---|---|
| `parameters` | `AdvertisingParameters` |
| `handle` | `server_end:AdvertisingHandle` |

#### Response

| Name | Type |
|---|---|
| `payload` | `Peripheral_StartAdvertising_Result` |

## ScanResultWatcher

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=84)*

Represents an active scan procedure. This protocol remains valid for the
duration of a scan and can be used to obtain scan results. The client can
close the protocol to stop scanning. If a scan is stopped by the system, the
protocol will be closed with the epitaph `CANCELED` to communicate this to
the client.

<br />

### Watch

Returns a list of all LE peers that satisfy the filters indicated in
`ScanOptions`. The first response(s) will return matching discovered
peers immediately. Subsequent calls receive a response only when peers
have been scanned or updated since the last call. If a second call to
`Watch` is erronously sent while one call is already pending, the scan
will be canceled and the protocol will be closed.

- response `updated` Peers that were added or updated since the last call to Watch().

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `updated` | `vector<Peer>` |

## **STRUCTS**

### AdvertisingDataDeprecated

*Defined in [fuchsia.bluetooth.le/types_deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/types_deprecated.fidl;l=22)*

Represents advertising and scan response data advertised by a broadcaster or peripheral.

**DEPRECATED**- Use AdvertisingData instead

| Field | Type | Description | Default |
|---|---|---|---|
| `name` | `fuchsia.bluetooth/DeviceName` | Name of the device. | No default |
| `tx_power_level` | `fuchsia.bluetooth/Int8?` | The radio transmission power level reported in the advertisement. | No default |
| `appearance` | `fuchsia.bluetooth/UInt16?` | The appearance reported in the advertisemet. | No default |
| `service_uuids` | `vector<fuchsia.bluetooth/UuidString>?` | List of service UUIDs reported in the advertisement. | No default |
| `service_data` | `vector<ServiceDataEntry>?` | Service data included in the advertisement. | No default |
| `manufacturer_specific_data` | `vector<ManufacturerSpecificDataEntry>?` | Manufacturer specific data entries. | No default |
| `solicited_service_uuids` | `vector<fuchsia.bluetooth/UuidString>?` | Service UUIDs that were solicited in the advertisement. Peripherals can invite centrals that expose certain services to connect to them using service solicitation. | No default |
| `uris` | `vector<string>?` | URIs included in the advertising packet. These are full URIs (they are encoded/decoded automatically) | No default |

<br />

### ChannelListener_Accept_Response

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=58)*

\<EMPTY\>

### ChannelListener_Connected_Response

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=69)*

\<EMPTY\>

### ConnectedIsochronousGroup_EstablishStreams_Response

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=324)*

\<EMPTY\>

### Connection_AcceptPeriodicAdvertisingSyncTransfer_Response

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=216)*

\<EMPTY\>

### Connection_TransferPeriodicAdvertisingSync_Response

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=205)*

\<EMPTY\>

### IsochronousStream_SetupDataPath_Response

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=258)*

\<EMPTY\>

### IsochronousStream_Write_Response

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=290)*

\<EMPTY\>

### ManufacturerData

*Defined in [fuchsia.bluetooth.le/advertising_data.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=35)*

Entry in the `manufacturer_data` field of a [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingData](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingData).

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `company_id` | `uint16` |   | No default |
| `data` | `vector<uint8>:252` |   | No default |

### ManufacturerSpecificDataEntry

*Defined in [fuchsia.bluetooth.le/types_deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/types_deprecated.fidl;l=15)*

**DEPRECATED**- Use ManufacturerData instead

| Field | Type | Description | Default |
|---|---|---|---|
| `company_id` | `uint16` |   | No default |
| `data` | `vector<uint8>` |   | No default |

<br />

### PeriodicAdvertisingSyncId

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=14)*

64-bit unique value used by the system to identify a PeriodicAdvertisingSync.
Added: 28

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `uint64` |   | No default |

### PeriodicAdvertisingSync_SyncToSubevents_Response

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=101)*

\<EMPTY\>

### Peripheral_Advertise_Response

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=192)*

\<EMPTY\>

### Peripheral_StartAdvertising_Response

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=218)*

\<EMPTY\>

### RemoteDevice

*Defined in [fuchsia.bluetooth.le/types_deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/types_deprecated.fidl;l=53)*

Represents a remote Bluetooth Low Energy device. A RemoteDevice can represent a central,
broadcaster, or peripheral based on the API from which it was received.

**DEPRECATED**- Use Peer instead

| Field | Type | Description | Default |
|---|---|---|---|
| `identifier` | `fuchsia.bluetooth/PeerIdString` | Identifier that uniquely identifies this device on the current system. | No default |
| `connectable` | `bool` | Whether or not this device is connectable. Non-connectable devices are typically acting in the LE broadcaster role. | No default |
| `rssi` | `fuchsia.bluetooth/Int8?` | The last known RSSI of this device, if known. | No default |
| `advertising_data` | `AdvertisingDataDeprecated?` | Advertising data broadcast by this device if this device is a broadcaster or peripheral. | No default |

<br />

### ScanFilter

*Defined in [fuchsia.bluetooth.le/types_deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/types_deprecated.fidl;l=72)*

Filter parameters for use during a scan. A discovered peripheral or broadcaster will be reported
to applications only if it satisfies all of the provided filter parameters. Null fields will be
ignored.

**DEPRECATED**- Use Filter instead

| Field | Type | Description | Default |
|---|---|---|---|
| `service_uuids` | `vector<fuchsia.bluetooth/UuidString>?` | Filter based on advertised service UUIDs. A peripheral that advertises at least one of the entries in `service_uuids` will satisfy this filter. | No default |
| `service_data_uuids` | `vector<fuchsia.bluetooth/UuidString>?` | Filter based on service data containing one of the given UUIDs. | No default |
| `manufacturer_identifier` | `fuchsia.bluetooth/UInt16?` | Filter based on a company identifier present in the manufacturer data. If this filter parameter is set, then the advertising payload must contain manufacturer specific data with the provided company identifier to satisfy this filter. | No default |
| `connectable` | `fuchsia.bluetooth/Bool?` | Filter based on whether or not a device is connectable. For example, a client that is only interested in peripherals that it can connect to can set this to true. Similarly a client can scan only for braodcasters by setting this to false. | No default |
| `name_substring` | `fuchsia.bluetooth/DeviceName` | Filter results based on a portion of the advertised device name. | No default |
| `max_path_loss` | `fuchsia.bluetooth/Int8?` | Filter results based on the path loss of the radio wave. A device that matches this filter must satisfy the following: 1. Radio transmission power level and received signal strength must be available for the path loss calculation; 2. The calculated path loss value must be less than, or equal to, `max_path_loss`. | No default |

<br />

### ServiceData

*Defined in [fuchsia.bluetooth.le/advertising_data.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=29)*

Entry in the `service_data` field of a [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingData](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingData).

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `uuid` | `fuchsia.bluetooth/Uuid` |   | No default |
| `data` | `vector<uint8>:252` |   | No default |

### ServiceDataEntry

*Defined in [fuchsia.bluetooth.le/types_deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/types_deprecated.fidl;l=9)*

**DEPRECATED**- Use ServiceData instead

| Field | Type | Description | Default |
|---|---|---|---|
| `uuid` | `fuchsia.bluetooth/UuidString` |   | No default |
| `data` | `vector<uint8>` |   | No default |

<br />

## **ENUMS**

### AdvertisingModeHint [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=37)*

A client can indicate the transmission rate of advertising packets by specifying a mode. The
mode provides a hint to the system when configuring the controller with advertising interval and
window parameters.

The mode affects how quickly a scanner or central is able to discover the peripheral; however it
can have an adverse effect on power consumption. While the system will try to honor a client's
request, it is not guaranteed to do so.

<br />

| Name | Value | Description |
|---|---|---|
| ### VERY_FAST | `1` | Advertise with a very short interval and window for fast discovery at the cost of higher power consumption. This corresponds to a 30-60ms interval on the 1M PHYs and 90-180ms on the coded PHY. |
| ### FAST | `2` | Advertise with a short interval and window that uses less power than `VERY_FAST`. This corresponds to a 100-150ms interval on the 1M PHYs and 300-450ms on the coded PHY. |
| ### SLOW | `3` | Advertise with a moderate interval and window. This corresponds to 1-1.2s on the 1M PHYs and 3s on the coded PHY. |

### CentralError [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=10)*

| Name | Value | Description |
|---|---|---|
| ### ABORTED | `1` | The request was aborted. |
| ### IN_PROGRESS | `2` | The request is already in progress. |
| ### INVALID_PARAMETERS | `3` | The provided parameters are invalid. |
| ### FAILED | `4` | Advertising could not be initiated due to a hardware or system error. |

### CigFramingOptions [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=93)*
Added: 27

<br />

| Name | Value | Description |
|---|---|---|
| ### UNFRAMED | `0` |   |
| ### FRAMED | `1` |   |

### CigPacking [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=99)*
Added: 27

<br />

| Name | Value | Description |
|---|---|---|
| ### SEQUENTIAL | `0` |   |
| ### INTERLEAVED | `1` |   |

### CreateCigError [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=179)*
Added: 27

<br />

| Name | Value | Description |
|---|---|---|
| ### UNKNOWN | `1` | The CIG could not be created because an unknown or unspecified error occurred unrelated to the other errors defined below. |
| ### NOT_ENOUGH_RESOURCES | `2` | The CIG could not be created because it would exceed available resources. |
| ### INVALID_PARAMETERS | `3` | The CIG could not be created because the parameters supplied to CreateCig for the CIG or for one or more CISes are invalid. Added: 33 |

### EstablishStreamsError [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=199)*
Added: 27

<br />

| Name | Value | Description |
|---|---|---|
| ### NOT_SUPPORTED | `1` | The controller does not support a CIS with the parameters specified for it. |
| ### DUPLICATE_CIS | `2` | The same CIS was specified multiple times in a call. |
| ### CIS_ALREADY_ESTABLISHED | `3` | One or more CISes specified already exist. |
| ### PEER_NOT_CONNECTED | `4` | One or more of the peers specified in the CIS parameters are not connected. |
| ### PEER_PARAMETERS_OUT_OF_RANGE | `5` | Expected peers were provided at CIG creation, and one or more peers requested did not satisfy the parameters of the CIG decided by that set. Added: 31 |

### IsoPacketStatusFlag [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=79)*

Flags indicating validity of data received from an isochronous channel.
Added: 24

<br />

| Name | Value | Description |
|---|---|---|
| ### VALID_DATA | `0` | Valid data. The complete SDU was received correctly. |
| ### DATA_WITH_POSSIBLE_ERRORS | `1` | Possibly invalid data. One ore more of the fragments received may contain errors or part of the packet may be missing. |
| ### LOST_DATA | `2` | Parts of the packet were not received correctly. |

### PeriodicAdvertisingSyncError [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=56)*
Added: 28

<br />

| Name | Value | Description |
|---|---|---|
| ### INITIAL_SYNCHRONIZATION_FAILED | `0` |   |
| ### SYNCHRONIZATION_LOST | `1` |   |
| ### NOT_SUPPORTED_LOCAL | `2` |   |
| ### NOT_SUPPORTED_REMOTE | `3` |   |

### PeriodicAdvertisingSyncTransferError [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=120)*
Added: 28

<br />

| Name | Value | Description |
|---|---|---|
| ### FAILED | `0` |   |
| ### INVALID_SYNC_ID | `1` | The `PeriodicAdvertisingSyncId` does not correspond to an active `PeriodicAdvertisingSync`. |
| ### TRANSFER_ALREADY_PENDING | `2` |   |
| ### NOT_SUPPORTED_LOCAL | `3` |   |
| ### NOT_SUPPORTED_REMOTE | `4` |   |

### PeripheralError [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=8)*

| Name | Value | Description |
|---|---|---|
| ### NOT_SUPPORTED | `1` | The operation or parameters requested are not supported on the current hardware. |
| ### ADVERTISING_DATA_TOO_LONG | `2` | The provided advertising data exceeds the maximum allowed length when encoded. |
| ### SCAN_RESPONSE_DATA_TOO_LONG | `3` | The provided scan response data exceeds the maximum allowed length when encoded. |
| ### INVALID_PARAMETERS | `4` | The requested parameters are invalid. |
| ### ABORTED | `5` | The request to start advertising was aborted, for example by issuing a new request with new parameters. |
| ### FAILED | `6` | Advertising could not be initiated due to a hardware or system error. |

### PhysicalLayer [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth.le/phy.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/phy.fidl;l=8)*

The physical layer configuration for LE radio transmissions.
Added: 28

<br />

| Name | Value | Description |
|---|---|---|
| ### LE_1M | `1` | The 1 Megabit PHY is the original and default PHY with balanced throughput and range. |
| ### LE_2M | `2` | The 2 Megabit PHY supports increased throughput at the cost of a reduced range. |
| ### LE_CODED | `3` | The Coded PHY increases the maximum range by using enhanced error detection and correction at the cost of reduced throughput. |

## **TABLES**

### AcceptedChannelParameters

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=14)*

The set of parameters for accepting a channel when listening for new channel
connections.

See [ChannelListenerRegistry](https://fuchsia.dev/reference/ChannelListenerRegistry/)/[ListenL2cap](https://fuchsia.dev/reference/ChannelListenerRegistry/#ListenL2cap).
Added: 24

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `accepted_channel_modes` | `vector<fuchsia.bluetooth/ChannelMode>` | All channel modes that should be accepted while listening. Must contain at least one channel mode or the call will fail with `ZX_ERR_INVALID_ARGS`. Required. |
| ### 2 | `max_packet_size` | `uint16` | Maximum supported packet size for receiving. Optional. If not provided, the size will be determined by the Bluetooth system. No guarantees are given regarding the size selected. |

### AdvertisingData

*Defined in [fuchsia.bluetooth.le/advertising_data.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=42)*

Represents advertising and scan response data that are transmitted by a LE peripheral or
broadcaster.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `name` | `fuchsia.bluetooth/DeviceName` | Long or short name of the device. |
| ### 2 | `appearance` | `fuchsia.bluetooth/Appearance` | The appearance of the device. |
| ### 3 | `tx_power_level` | `int8` | **DEPRECATED**- Use include_tx_power_level instead. This value will be ignored. |
| ### 4 | `service_uuids` | `vector<fuchsia.bluetooth/Uuid>` | Service UUIDs. |
| ### 5 | `service_data` | `vector<ServiceData>` | Service data entries. |
| ### 6 | `manufacturer_data` | `vector<ManufacturerData>` | Manufacturer-specific data entries. |
| ### 7 | `uris` | `vector<string:278>` | String representing a URI to be advertised, as defined in [IETF STD 66](https://tools.ietf.org/html/std66). Each entry should be a UTF-8 string including the scheme. For more information, see: - https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml for allowed schemes; - https://www.bluetooth.com/specifications/assigned-numbers/uri-scheme-name-string-mapping for code-points used by the system to compress the scheme to save space in the payload. |
| ### 8 | `include_tx_power_level` | `bool` | Indicates whether the current TX power level should be included in the advertising data. |
| ### 9 | `resolvable_set_identifier` | `array<uint8, 6>` | Identifies the peer as belonging to a Coordinated Set. Resolution and generation of this parameter is defined in the Coordinated Set Identification Service Specification. Added: 24 |
| ### 10 | `broadcast_name` | `string:128` | The broadcast name string can be used by a user interface on a scanning device that displays information on the available broadcast sources. Multiple devices with the same Broadcast Name may be transmitting the same data, allowing devices to choose one. At least 4 unicode characters long and no more than 32 characters. Defined in the Public Broadcast Profile specification. Added: 24 |

### AdvertisingParameters

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=71)*

Represents the parameters for configuring advertisements.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data` | `AdvertisingData` | The fields that will be encoded in the data section of advertising packets. This field is required. |
| ### 2 | `scan_response` | `AdvertisingData` | The fields that are to be sent in a scan response packet. Clients may use this to send additional data that does not fit inside an advertising packet on platforms that do not support the advertising data length extensions. If present advertisements will be configured to be scannable. |
| ### 3 | `mode_hint` | `AdvertisingModeHint` | The desired advertising frequency. See [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingModeHint](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingModeHint). Defaults to [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[AdvertisingModeHint.SLOW](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#AdvertisingModeHint.SLOW) if not present. |
| ### 4 | `connectable` | `bool` | If present and true then the controller will broadcast connectable advertisements which allows remote LE centrals to initiate a connection to the Peripheral. If false or otherwise not present then the advertisements will be non-connectable. **DEPRECATED**- Prefer to use the connection_options field for new code. |
| ### 5 | `connection_options` | `ConnectionOptions` | If present, the controller will broadcast connectable advertisements which allow peers to initiate connections to the Peripheral. The fields of `ConnectionOptions` will configure any connections set up from advertising. |
| ### 6 | `advertising_procedure` | `AdvertisingProcedure` | Specifies the advertising type to use (e.g. legacy, extended, etc). If not present, we default to legacy advertising to maintain optimal compatibility with pre-Bluetooth 5.0 devices. See field descriptions within AdvertisingProcedure for more information. Added: 24 |
| ### 7 | `address_type` | `fuchsia.bluetooth/AddressType` | If privacy is not enabled, the address type will always be public. If privacy is enabled and the client is not privileged, the address will be a random private address (either resolvable or non-resolvable). A non-privileged client requesting a public address will return an error. If privacy is enabled and the client is privileged, they may request any address type, or will default to a random private address. If this field is unset, the address type will be public or random depending on if privacy is enabled in the system. Added: 24 |

### BroadcastIsochronousGroupInfo

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=297)*

The "BIGInfo" parameters describing an LE Audio Broadcast Isochronous Group (BIG).
Missing fields to be added as part of fxbug.dev/429213165.
Added: 28

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `streams_count` | `uint8` | The number of Broadcast Isochronous Streams in this group. |
| ### 2 | `max_sdu_size` | `uint16` | The maximum size of an isochronous SDU. |
| ### 3 | `phy` | `PhysicalLayer` | The PHY used for transmission of data. |
| ### 4 | `encryption` | `bool` | Indicates whether the BIG is encrypted. |

### BroadcastIsochronousGroupInfoReport

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=35)*

A BIGInfo report that was received with a periodic advertisement.
Added: 28

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `info` | `BroadcastIsochronousGroupInfo` |   |
| ### 2 | `timestamp` | `zx/Time` | The timestamp when the report was received by the host. |

### CentralCreateConnectedIsochronousGroupRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=194)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cig_parameters` | `CigParameters` | Required. Parameters for the CIG. |
| ### 2 | `cis_requested_parameters` | `vector<CisRequestedParameters>:31` | Required. At least one CIS must be included. |
| ### 3 | `cig` | `server_end:ConnectedIsochronousGroup` | Required. ConnectedIsochronousGroup protocol to connect. |

### CentralSyncToPeriodicAdvertisingRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=168)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `peer_id` | `fuchsia.bluetooth/PeerId` | Identifier of the peer transmitting the periodic advertisement, as indicated via `Peer.periodic_advertising_interval`. Required. |
| ### 2 | `advertising_sid` | `uint8` | The Advertising SID of the advertisement used to synchronize. This is found in a standard scan result (`Peer.advertising_sid`). Required. |
| ### 3 | `sync` | `server_end:PeriodicAdvertisingSync` | Upon successful synchronization, the `PeriodicAdvertisingSync.OnEstablished` event will be sent. See `PeriodicAdvertisingSync` for failure epitaphs. Required. |
| ### 4 | `config` | `PeriodicAdvertisingSyncConfiguration` |   |

### Central_CreateConnectedIsochronousGroup_Response

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=201)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cig_id` | `uint8` | A unique CIG_ID, allocated by the host. |

### ChannelListenerConnectedRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=62)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `channel` | `client_end:fuchsia.bluetooth/Channel` | Required. |
| ### 2 | `ext_offload` | `client_end:ChannelOffloadExt` | Channel offload extension. See ChannelOffloadExt. Only present for privileged clients, enabling them to initiate channel offloading. |

### ChannelListenerRegistryListenL2capRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=91)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `parameters` | `AcceptedChannelParameters` | Accepted parameters for the local side of the channel. |
| ### 2 | `listener` | `client_end:ChannelListener` | The channel listener protocol to open. |

### ChannelListenerRegistry_ListenL2cap_Response

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=96)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `psm` | `Psm` | PSM assigned by the registry. Guaranteed to be in the `DYNAMIC` range of PSM values. |

### ChannelOffloadExtStartOffloadRequest

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=40)*

| Ordinal | Field | Type | Description |
|---|---|---|---|

### ChannelOffloadExt_StartOffload_Response

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=40)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `offload_parameters` | `fuchsia.bluetooth/L2capChannelOffloadParameters` |   |

### CigParameters

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=105)*
Added: 27

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `sdu_interval_c_to_p` | `uint32` | Interval between the start of consecutive SDUs (central =\> peripheral, microseconds). This is a function of the codec being used. Required. |
| ### 2 | `sdu_interval_p_to_c` | `uint32` | Interval between the start of consecutive SDUs (peripheral =\> central, microseconds). This is a function of the codec being used. Required. |
| ### 3 | `packing` | `CigPacking` | The preferred method of arranging subevents of multiple CISes. The controller may ignore this parameter. Optional. If not specified, SEQUENTIAL will be used. |
| ### 4 | `framing` | `CigFramingOptions` | Specifies inclusion of time offset values in data frame. Optional. If not specified, UNFRAMED will be used. |
| ### 5 | `max_transport_latency_c_to_p` | `uint16` | Maximum latency, in milliseconds, between controllers (central =\> peripheral). Required. |
| ### 6 | `max_transport_latency_p_to_c` | `uint16` | Maximum latency, in milliseconds, between controllers (peripheral =\> central). Required. |
| ### 7 | `expected_peers` | `vector<fuchsia.bluetooth/PeerId>` | The expected or intended peers to join this CIG, if known. This may be used to optimize parameters, but may limit the set of peers that can connect to the group. Optional. Added: 31 |

### CisEstablishedParameters

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=40)*

Established configuration for a single CIS.
Added: 24

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cig_sync_delay` | `zx/Duration` | Maximum time for transmission of PDUs of all CISes in a CIG event. In the range \[234, 8388607\] microseconds. This field is always present. |
| ### 2 | `cis_sync_delay` | `zx/Duration` | The maximum time for transmission of PDUs of the specified CIS in a CIG event. In the range \[234, 8388607\] microseconds. This field is always present. |
| ### 3 | `max_subevents` | `uint8` | Maximum number of subevents in each CIS event. This field is always present. |
| ### 4 | `iso_interval` | `zx/Duration` | Time between two consecutive CIS anchor points, in the range \[5ms, 4s\] This field is always present. |
| ### 5 | `central_to_peripheral_params` | `CisUnidirectionalParams` | Parameters for Central =\> Peripheral transmissions, if applicable. This field is present if the stream includes isochronous data transmission from the Central to the Peripheral. |
| ### 6 | `peripheral_to_central_params` | `CisUnidirectionalParams` | Parameters for Peripheral =\> Central transmissions, if applicable. This field is present if the stream includes isochronous data transmission from the Peripheral to the Central. |

### CisParameters

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=168)*
Added: 27

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cis_id` | `uint8` | ID of the stream to establish (as previously passed to Connection/CreateCig()). Required. |
| ### 2 | `id` | `fuchsia.bluetooth/PeerId` | Peripheral device providing other end of the isochronous data stream. Required. |

### CisRequestedParameters [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=144)*
Added: 27

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cis_id` | `uint8` | ID selected to uniquely identify a stream within a CIG. All `cis_id`s must be distinct within a single creation request. Required. |
| ### 2 | `connection_stream` | `server_end:IsochronousStream` | The channel that will be used for operations on the stream. Required. |
| ### 3 | `max_sdu_size_outgoing` | `uint16` | Maximum SDU size (central =\> peripheral). This is a function of the codec being used. Unidirectional streams should set the unused direction to 0. Optional. If not provided, a value of 0 will be used (unidirectional) |
| ### 4 | `max_sdu_size_incoming` | `uint16` | Maximum SDU size (peripheral =\> central). This is a function of the codec being used. Unidirectional streams should set the unused direction to 0. Optional. If not provided, a value of 0 will be used (unidirectional) |

### CisUnidirectionalParams

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=21)*

Parameters related to a single direction of transmission in an established CIS.
Added: 24

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `transport_latency` | `zx/Duration` | Transport latency, in the range \[234, 8388607\] microseconds This field is always present. |
| ### 2 | `burst_number` | `uint8` | Burst number for transmissions in this direction. This field is always present. |
| ### 3 | `flush_timeout` | `uint8` | Flush timeout for each payload, in multiples of the ISO interval. This field is always present. |

### CodecDelayGetCodecLocalDelayRangeRequest

*Defined in [fuchsia.bluetooth.le/codec_delay.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/codec_delay.fidl;l=21)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `logical_transport_type` | `fuchsia.bluetooth/LogicalTransportType` | Logical transport type being used. Currenly only supports LE transport mechanisms (CIS or BIS). Required. |
| ### 2 | `data_direction` | `fuchsia.bluetooth/DataDirection` | Indicates direction of data flow. Required. |
| ### 3 | `codec_attributes` | `fuchsia.bluetooth/CodecAttributes` | Codec being used over the air. Required. |

### CodecDelay_GetCodecLocalDelayRange_Response

*Defined in [fuchsia.bluetooth.le/codec_delay.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/codec_delay.fidl;l=31)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `min_controller_delay` | `zx/Duration` | Minimum controller delay for the specified configuration, in the range \[0, 4\] seconds. Always provided on success. |
| ### 2 | `max_controller_delay` | `zx/Duration` | Maximum controller delay for the specified configuration, in the range \[0, 4\] seconds. Always provided on success. |

### ConnectedIsochronousGroupEstablishStreamsRequest

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=321)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cis_params` | `vector<CisParameters>:31` | Required. |

### ConnectionAcceptCisRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=162)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `cig_id` | `uint8` | Identifier of the CIG that contains the requested CIS. Required. |
| ### 2 | `cis_id` | `uint8` | Identifier of the requested CIS. Required. |
| ### 3 | `connection_stream` | `server_end:IsochronousStream` | When the stream is established, the server will invoke IsochronousStream::OnCisEstablished() on this channel. Required. If the client end of this channel is closed, requests of the corresponding CIG/CIS combination will be rejected until/unless another call is made to AcceptCis() with the same CIG/CIS parameters. |

### ConnectionAcceptPeriodicAdvertisingSyncTransferRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=210)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `sync` | `server_end:PeriodicAdvertisingSync` | When the sync is established, the `PeriodicAdvertisingSync.OnEstablished` event will be sent containing the service data received with the transfer. Closing the client end will cancel the transfer. |
| ### 2 | `config` | `PeriodicAdvertisingSyncConfiguration` |   |

### ConnectionConnectL2capRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#value-vs-resource)

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=180)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `parameters` | `fuchsia.bluetooth/ChannelParameters` | Parameters for the local side of the channel. |
| ### 2 | `channel` | `server_end:fuchsia.bluetooth/Channel` | The channel protocol to open. |
| ### 3 | `psm` | `Psm` | The PSM of the remote side to connect to. |
| ### 4 | `ext_offload` | `server_end:ChannelOffloadExt` | Channel offload extension. See [fuchsia.bluetooth.le](https://fuchsia.dev/reference/fuchsia.bluetooth.le/)/[ChannelOffloadExt](https://fuchsia.dev/reference/fuchsia.bluetooth.le/#ChannelOffloadExt). Only privileged clients are allowed to offload channels. This protocol will be closed for other clients. The client must additionally call `ChannelOffloadExt.StartOffload` to start offloading. Added: 31 |

### ConnectionOptions

*Defined in [fuchsia.bluetooth.le/connection_options.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/connection_options.fidl;l=10)*

Represents parameters that are set on a per-connection basis by FIDL protocols that create
Low Energy connections.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `bondable_mode` | `bool` | When true, the connection operates in bondable mode. This means pairing will form a bond, or persist across disconnections, if the peer is also in bondable mode. When not present, the connection defaults to bondable mode. When false, the connection operates in non- bondable mode, which means the local device only allows pairing that does not form a bond. |
| ### 2 | `service_filter` | `fuchsia.bluetooth/Uuid` | When present, service discovery performed following the connection is restricted to primary services that match this field. Otherwise, by default all available services are discovered. |

### ConnectionTransferPeriodicAdvertisingSyncRequest

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=198)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `sync_id` | `PeriodicAdvertisingSyncId` | Required. |
| ### 2 | `service_data` | `uint16` | Application specific data to send with the sync. Optional. Default: 0 |

### Extended

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=67)*

| Ordinal | Field | Type | Description |
|---|---|---|---|

### Filter

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=26)*

Filter parameters for use during a scan. A discovered peer only matches the
filter if it satisfies all of the present filter parameters.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `service_uuid` | `fuchsia.bluetooth/Uuid` | Filter based on advertised service UUID. |
| ### 2 | `service_data_uuid` | `fuchsia.bluetooth/Uuid` | Filter based on service data containing the given UUID. |
| ### 3 | `manufacturer_id` | `uint16` | Filter based on a manufacturer identifier present in the manufacturer data. If this filter parameter is set, then the advertising payload must contain manufacturer specific data with the provided company identifier to satisfy this filter. Manufacturer identifiers can be found at https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/ |
| ### 4 | `connectable` | `bool` | Filter based on whether or not a device is connectable. For example, a client that is only interested in peripherals that it can connect to can set this to true. Similarly a client can scan only for broadcasters by setting this to false. |
| ### 5 | `name` | `fuchsia.bluetooth/DeviceName` | Filter results based on a portion of the advertised device name. Substring matches are allowed. |
| ### 6 | `max_path_loss` | `int8` | Filter results based on the path loss of the radio wave. A device that matches this filter must satisfy the following: 1. Radio transmission power level and received signal strength must be available for the path loss calculation; 2. The calculated path loss value must be less than, or equal to, `max_path_loss`. NOTE: This field is calculated using the RSSI and TX Power information obtained from advertising and scan response data during a scan procedure. It should NOT be confused with information for an active connection obtained using the "Path Loss Reporting" feature. |
| ### 7 | `solicitation_uuid` | `fuchsia.bluetooth/Uuid` | Filter based on a service solicitation by service UUID. Service solicitation is an invitation to a peer to connect if they provide a service we want to use. Added: 26 |

### IsochronousStreamOnEstablishedRequest

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=224)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `result` | `zx/Result` | A result of ZX_ERR_INTERNAL indicates that the controller received a request but was unable to establish the stream. |
| ### 2 | `established_params` | `CisEstablishedParameters` | This field is always present if a stream was successfully established. |

### IsochronousStreamSetupDataPathRequest

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=245)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data_direction` | `fuchsia.bluetooth/DataDirection` | Directions in which data will flow. Required. |
| ### 2 | `codec_attributes` | `fuchsia.bluetooth/CodecAttributes` | Specifies the coding format used over the air. Required. |
| ### 3 | `controller_delay` | `zx/Duration` | The delay provided must be within the controller's supported range and should not exceed 4 seconds. Required. |

### IsochronousStreamWriteRequest

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=287)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data` | `vector<uint8>:4095` | The data frame itself. |

### IsochronousStream_Read_Response

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=265)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data` | `vector<uint8>` | The data frame itself. Required. |
| ### 2 | `sequence_number` | `uint16` | The sequence number associated with the frame. Required. |
| ### 3 | `status_flag` | `IsoPacketStatusFlag` | Status flags of packet, as reported by the controller. Required. |
| ### 4 | `timestamp` | `zx/Duration` | Reception timestamp, as reported by the controller. Optional. |

### Legacy

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=56)*

| Ordinal | Field | Type | Description |
|---|---|---|---|

### Peer

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=60)*

Represents a Bluetooth Low Energy peer that may act in the broadcaster, peripheral, or central
role. The peer's role depends on whether it is obtained from the Central or Peripheral protocol.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `id` | `fuchsia.bluetooth/PeerId` | Uniquely identifies this peer on the current system. This field is always present. |
| ### 2 | `connectable` | `bool` | Whether or not this peer is connectable. Non-connectable peers are typically in the LE broadcaster role. This field is always present. |
| ### 3 | `rssi` | `int8` | The last observed signal strength of this peer. This field is only present for a peer that is broadcasting. The RSSI can be stale if the peer has not been advertising. NOTE: This field should NOT be confused with the "connection RSSI" of a peer that is currently connected to the system. |
| ### 4 | `advertising_data` | `AdvertisingData` | **DEPRECATED**- Use \`data\` instead |
| ### 5 | `name` | `fuchsia.bluetooth/DeviceName` | The name of this peer. The name is often obtained during a scan procedure and can get updated during the name discovery procedure following a connection. This field is present if the name is known. |
| ### 6 | `data` | `ScanData` | Information from advertising and scan response data broadcast by this peer. When present, this contains the advertising data last received from the peer. |
| ### 7 | `bonded` | `bool` | Whether or not this peer is bonded. This field is always present. |
| ### 8 | `last_updated` | `zx/Time` | The value of the system monotonic clock, measured at the time this peer was last updated (e.g. due to reception of an advertisement). This field is always present. |
| ### 9 | `advertising_sid` | `uint8` | Value of the Advertising SID. Range: 0x00 to 0x0F Added: 25 |
| ### 10 | `periodic_advertising_interval` | `uint16` | Interval of the periodic advertising. The presence of this field indicates that a periodic advertising train is associated with this advertisement. Range: 0x0006 to 0xFFFF Time: N × 1.25 ms Added: 25 |

### PeriodicAdvertisingReport

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=19)*
Added: 28

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `rssi` | `int8` | The signal strength of the advertising report. |
| ### 2 | `data` | `ScanData` | The advertising data payload sent with this report. |
| ### 3 | `event_counter` | `uint16` | The event counter of the event that the advertising packet was received in. This can be used to reply to the report. |
| ### 4 | `subevent` | `uint8` | The subevent number of the report. Only present if the packet was received in a subevent. |
| ### 5 | `timestamp` | `zx/Time` | The timestamp when the report was received by the host. |

### PeriodicAdvertisingSyncConfiguration

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=42)*
Added: 28

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `filter_duplicates` | `bool` | Filter out duplicate advertising reports. Optional. Default: true |

### PeriodicAdvertisingSyncOnEstablishedRequest

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=67)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `id` | `PeriodicAdvertisingSyncId` | Used in Connection.TransferPeriodicAdvertisingSync. |
| ### 2 | `subevents_count` | `uint8` | The number of subevents this periodic advertisement has. |
| ### 3 | `peer_id` | `fuchsia.bluetooth/PeerId` |   |
| ### 4 | `service_data` | `uint16` | Present for Sync transfers only. Application specific data received with the transfer. |
| ### 5 | `advertising_sid` | `uint8` |   |
| ### 6 | `phy` | `PhysicalLayer` |   |
| ### 7 | `periodic_advertising_interval` | `uint16` | Kept in interval units as profiles use this field unchanged. Range: 0x0006 to 0xFFFF Time: N × 1.25 ms |

### PeriodicAdvertisingSyncSyncToSubeventsRequest

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=98)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `subevents` | `vector<uint8>:128` | A list of subevent numbers to sync to. |

### PeriodicAdvertisingSync_WatchAdvertisingReport_Response

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=92)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `reports` | `vector<SyncReport>` |   |

### ScanData

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=11)*

Information obtained from advertising and scan response data broadcast by a peer.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `tx_power` | `int8` | The radio transmit power level reported by an advertising and/or scannable peer. NOTE: This field should NOT be confused with the "connection TX Power Level" of a peer that is currently connected to the system obtained via the "Transmit Power reporting" feature. |
| ### 2 | `appearance` | `fuchsia.bluetooth/Appearance` | The appearance of the device. |
| ### 3 | `service_uuids` | `vector<fuchsia.bluetooth/Uuid>` | Service UUIDs. |
| ### 4 | `service_data` | `vector<ServiceData>` | Service data entries. |
| ### 5 | `manufacturer_data` | `vector<ManufacturerData>` | Manufacturer-specific data entries. |
| ### 6 | `uris` | `vector<string:278>` | String representing a URI to be advertised, as defined in [IETF STD 66](https://tools.ietf.org/html/std66). Each entry should be a UTF-8 string including the scheme. For more information, see https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml for allowed schemes; NOTE: Bluetooth advertising compresses schemas over the air to save space. See https://www.bluetooth.com/specifications/assigned-numbers/uri-scheme-name-string-mapping. |
| ### 7 | `timestamp` | `zx/Time` | The monotonic time when this scan data was received. |
| ### 8 | `resolvable_set_identifier` | `array<uint8, 6>` | Identifies the peer as belonging to a Coordinated Set. Resolution and generation of this parameter is defined in the Coordinated Set Identification Service Specification. Added: 31 |
| ### 9 | `broadcast_name` | `string:128` | The broadcast name string can be used by a user interface on a scanning device that displays information on the available broadcast sources. Multiple devices with the same Broadcast Name may be transmitting the same data, allowing devices to choose one. At least 4 unicode characters long and no more than 32 characters. Defined in the Public Broadcast Profile specification. Added: 31 |

### ScanOptions

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=71)*

Parameters used during a scan.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `filters` | `vector<Filter>` | List of filters for use during a scan. A peripheral that satisfies any of these filters will be reported. At least 1 filter must be specified. While not recommended, clients that require that all peripherals be reported can specify an empty filter. |

## **UNIONS**

### AdvertisingProcedure [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=53)*
Added: 24

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `legacy` | `Legacy` | Advertise using legacy advertising packets. All devices should be able to discover this type of packet. |
| ### 2 | `extended` | `Extended` | Advertise using extended advertising packets. Extended advertising packets allow for a much larger amount of data to be advertised than legacy advertising packets (31 bytes vs 251 bytes per PDU). Extended advertising packets support up to 1,650 bytes in an advertisement chain, but they are only discoverable by newer devices using Bluetooth 5.0+. Extended advertising packets are not supported by all products. PeripheralError::NOT_SUPPORTED will be returned if requested and not supported. |

<br />

### Central_CreateConnectedIsochronousGroup_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/central.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/central.fidl;l=201)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `Central_CreateConnectedIsochronousGroup_Response` |   |
| ### 2 | `err` | `CreateCigError` |   |

<br />

### ChannelListenerRegistry_ListenL2cap_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=96)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `ChannelListenerRegistry_ListenL2cap_Response` |   |
| ### 2 | `err` | `zx/Status` |   |

<br />

### ChannelListener_Accept_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=58)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `ChannelListener_Accept_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### ChannelListener_Connected_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=69)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `ChannelListener_Connected_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### ChannelOffloadExt_StartOffload_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/l2cap.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=40)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `ChannelOffloadExt_StartOffload_Response` |   |
| ### 2 | `err` | `zx/Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### CodecDelay_GetCodecLocalDelayRange_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/codec_delay.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/codec_delay.fidl;l=31)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `CodecDelay_GetCodecLocalDelayRange_Response` |   |
| ### 2 | `err` | `zx/Status` |   |

<br />

### ConnectedIsochronousGroup_EstablishStreams_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=324)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `ConnectedIsochronousGroup_EstablishStreams_Response` |   |
| ### 2 | `err` | `EstablishStreamsError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Connection_AcceptPeriodicAdvertisingSyncTransfer_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=216)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `Connection_AcceptPeriodicAdvertisingSyncTransfer_Response` |   |
| ### 2 | `err` | `PeriodicAdvertisingSyncTransferError` |   |

<br />

### Connection_TransferPeriodicAdvertisingSync_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/peer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peer.fidl;l=205)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `Connection_TransferPeriodicAdvertisingSync_Response` |   |
| ### 2 | `err` | `PeriodicAdvertisingSyncTransferError` |   |

<br />

### IsochronousStream_Read_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=265)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `IsochronousStream_Read_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### IsochronousStream_SetupDataPath_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=258)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `IsochronousStream_SetupDataPath_Response` |   |
| ### 2 | `err` | `zx/Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### IsochronousStream_Write_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/iso.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=290)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `IsochronousStream_Write_Response` |   |
| ### 2 | `err` | `zx/Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### PeriodicAdvertisingSync_SyncToSubevents_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=101)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `PeriodicAdvertisingSync_SyncToSubevents_Response` |   |
| ### 2 | `err` | `zx/Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### PeriodicAdvertisingSync_WatchAdvertisingReport_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=92)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `PeriodicAdvertisingSync_WatchAdvertisingReport_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Peripheral_Advertise_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=192)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `Peripheral_Advertise_Response` |   |
| ### 2 | `err` | `PeripheralError` |   |

<br />

### Peripheral_StartAdvertising_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/peripheral.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/peripheral.fidl;l=218)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `Peripheral_StartAdvertising_Response` |   |
| ### 2 | `err` | `PeripheralError` |   |

<br />

### SyncReport [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language.md.txt#strict-vs-flexible)

*Defined in [fuchsia.bluetooth.le/periodic.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=50)*
Added: 28

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `periodic_advertising_report` | `PeriodicAdvertisingReport` |   |
| ### 2 | `broadcast_isochronous_group_info_report` | `BroadcastIsochronousGroupInfoReport` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAX_BROADCAST_NAME_OCTETS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=26) | `128` | `uint8` | Added: 24 |
| [MAX_ISO_PACKET_SIZE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=12) | `4095` | `uint16` | An ISO data packet can be no larger than the maximum 12-bit unsigned integer. See Bluetooth Core Spec Version 6.0 \| Vol 4, Part E, Section 5.4.5 Added: 27 |
| [MAX_MANUFACTURER_DATA_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=14) | `252` | `uint8` |   |
| [MAX_SERVICE_DATA_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=10) | `252` | `uint8` |   |
| [MAX_STREAMS_IN_GROUP](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/iso.fidl;l=17) | `31` | `uint8` | The maximum number of connected isochronous streams that can be added to a connected isochronous group. Added: 27 |
| [MAX_SUBEVENTS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/periodic.fidl;l=10) | `128` | `uint8` | Added: 28 |
| [MAX_URI_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/advertising_data.fidl;l=21) | `278` | `uint16` |   |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [Psm](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth.le/l2cap.fidl;l=76) | `uint16` | An identifier for a service that accepts connection-oriented channel connections. Referred to as a (simplified) protocol/service multiplexer in the Bluetooth specification. Added: 24 |