class Server

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

Public Members

static const char[] Name_

Public Methods

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

Publishes the given service so that it is available to all remote peers.

A LocalServiceDelegate must be provided over which to receive service requests.

The caller must assign distinct identifiers to the characteristics and

descriptors listed in `info`. These identifiers will be used in requests

sent to `delegate`.

`service` can be used to interact with the pubished service. If this

service cannot be published then the handle for `service` will be closed.

Returns the success or failure status of the call and a unique identifier

that can be used to unregister the service.