class Server

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

Public Members

static const char[] Name_

Public Methods

void ~Server ()
void PublishService (::fuchsia::bluetooth::gatt2::ServiceInfo info, ::fidl::InterfaceHandle< ::fuchsia::bluetooth::gatt2::LocalService> service, PublishServiceCallback callback)

Publishes the given `service` so that it is available to all remote peers. Upon publication,

the service is defined to have INITIAL_VALUE_CHANGED_CREDITS credits available for sending

indications/notifications.

The caller must assign distinct handles to the characteristics and descriptors listed in

`info`. These identifiers will be used in requests sent to `service`.

+ request `info` Defines the structure of the GATT service. Includes characteristics and

descriptors that will be made available to peers, as well as the service handle, which is

required to be unique across all services published to this Server.

+ request `service` Provides the implementation of the service per the documented behavior

of a `LocalService`.

- response An empty response indicates the service was successfully published.

* error See `gatt2.PublishServiceError` for possible failure modes.