class LocalServiceDelegate
Defined at line 3729 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt/fuchsia.bluetooth.gatt/hlcpp/fuchsia/bluetooth/gatt/cpp/fidl.h
Interface for responding to requests on a local service.
Public Methods
void ~LocalServiceDelegate ()
void OnCharacteristicConfiguration (uint64_t characteristic_id, ::std::string peer_id, bool notify, bool indicate)
Notifies the delegate when a remote device with `peer_id` enables or
disables notifications or indications on the characteristic with the given
`characteristic_id`.
void OnReadValue (uint64_t id, int32_t offset, OnReadValueCallback callback)
Called when a remote device issues a request to read the value of the
of the characteristic or descriptor with given identifier. The delegate
must respond to the request by returning the characteristic value. If the
read request resulted in an error it should be returned in `error_code`.
On success, `error_code` should be set to NO_ERROR and a `value` should be
provided.
void OnWriteValue (uint64_t id, uint16_t offset, ::std::vector<uint8_t> value, OnWriteValueCallback callback)
Called when a remote device issues a request to write the value of the
characteristic or descriptor with the given identifier.
void OnWriteWithoutResponse (uint64_t id, uint16_t offset, ::std::vector<uint8_t> value)
Called when a remote device issues a request to write the value of the
characteristic with the given identifier. This can be called on a
characteristic with the WRITE_WITHOUT_RESPONSE property.