class LocalService

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

Interface for communicating with a published service.

Public Methods

void ~LocalService ()
void RemoveService ()

Removes the service that this interface instance corresponds to. Does

nothing if the service is already removed.

void NotifyValue (uint64_t characteristic_id, ::std::string peer_id, ::std::vector<uint8_t> value, bool confirm)

Sends a notification carrying the `value` of the characteristic with the

given `characteristic_id` to the device with `peer_id`.

If `confirm` is true, then this method sends an indication instead. If the

peer fails to confirm the indication, the link between the peer and the

local adapter will be closed.

This method has no effect if the peer has not enabled notifications or

indications on the requested characteristic.