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_tcharacteristic_id,::std::stringpeer_id,boolnotify,boolindicate)
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_tid,int32_toffset,OnReadValueCallbackcallback)
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_tid,uint16_toffset,::std::vector<uint8_t>value,OnWriteValueCallbackcallback)
Called when a remote device issues a request to write the value of the
characteristic or descriptor with the given identifier.
void OnWriteWithoutResponse (uint64_tid,uint16_toffset,::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.