class Connection

Defined at line 15892 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

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.

Public Methods

void ~Connection ()
void GetCodecLocalDelayRange (::fuchsia::bluetooth::le::CodecDelayGetCodecLocalDelayRangeRequest CodecDelayGetCodecLocalDelayRangeRequest, GetCodecLocalDelayRangeCallback callback)

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.

void RequestGattClient (::fidl::InterfaceRequest< ::fuchsia::bluetooth::gatt2::Client> client)

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.

void AcceptCis (::fuchsia::bluetooth::le::ConnectionAcceptCisRequest ConnectionAcceptCisRequest)

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.

void ConnectL2cap (::fuchsia::bluetooth::le::ConnectionConnectL2capRequest ConnectionConnectL2capRequest)

Connect to an L2CAP LE connection-oriented channel.

void TransferPeriodicAdvertisingSync (::fuchsia::bluetooth::le::ConnectionTransferPeriodicAdvertisingSyncRequest ConnectionTransferPeriodicAdvertisingSyncRequest, TransferPeriodicAdvertisingSyncCallback callback)

Send synchronization information for a periodic advertising train identified by `sync_id` to

the connected peer.

void AcceptPeriodicAdvertisingSyncTransfer (::fuchsia::bluetooth::le::ConnectionAcceptPeriodicAdvertisingSyncTransferRequest ConnectionAcceptPeriodicAdvertisingSyncTransferRequest, AcceptPeriodicAdvertisingSyncTransferCallback callback)

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.