C/C++ API Reference
Loading...
Searching...
No Matches
pw::bluetooth::gatt::RemoteService2 Class Referenceabstract

Overview

An interface for interacting with a GATT service on a peer device.

Classes

struct  LongReadOptions
 
struct  ReadByTypeResult
 A result returned by ReadByType. More...
 
struct  ReadValue
 Wrapper around a possible truncated value received from the server. More...
 
struct  WriteOptions
 

Public Types

enum class  RemoteServiceError { RemoteServiceError::kServiceRemoved = 0 , RemoteServiceError::kPeerDisconnected = 1 }
 
enum class  WriteMode : uint8_t { WriteMode::kDefault , WriteMode::kReliable , WriteMode::kWithoutResponse }
 
using Ptr = internal::RaiiPtr< RemoteService2, &RemoteService2::Disconnect >
 

Public Member Functions

virtual async2::Poll< RemoteServiceErrorPendError (async2::Context &cx)=0
 
virtual void DiscoverCharacteristics (async2::OnceRefSender< Vector< Characteristic2 > > characteristics_sender)=0
 
virtual async2::OnceReceiver< pw::expected< Vector< ReadByTypeResult, 5 >, Error > > ReadByType (Uuid uuid)=0
 
virtual async2::OnceReceiver< pw::expected< ReadValue, Error > > ReadCharacteristic (Handle handle, std::optional< LongReadOptions > options)=0
 
virtual async2::OnceReceiver< pw::expected< void, Error > > WriteCharacteristic (Handle handle, pw::multibuf::MultiBuf &&value, WriteOptions options)=0
 
virtual async2::OnceReceiver< pw::expected< ReadValue, Error > > ReadDescriptor (Handle handle, std::optional< LongReadOptions > options)=0
 
virtual async2::OnceReceiver< pw::expected< void, Error > > WriteDescriptor (Handle handle, pw::multibuf::MultiBuf &&value)=0
 
virtual async2::OnceReceiver< pw::expected< void, Error > > EnableNotifications (Handle handle)=0
 
virtual async2::Poll< ReadValuePendNotification (Handle handle, async2::Context &cx)=0
 
virtual async2::OnceReceiver< pw::expected< void, Error > > StopNotifications (Handle handle)=0
 

Private Member Functions

virtual void Disconnect ()=0
 

The documentation for this class was generated from the following file: