C/C++ API Reference
Loading...
Searching...
No Matches
pw::bluetooth::low_energy::Peripheral2 Class Referenceabstract

Overview

Represents the LE Peripheral role, which advertises and is connected to.

Inheritance diagram for pw::bluetooth::low_energy::Peripheral2:
pw::bluetooth_sapphire::Peripheral

Classes

struct  AdvertisingIntervalRange
 
struct  AdvertisingParameters
 Represents the parameters for configuring advertisements. More...
 
struct  ExtendedAdvertising
 
struct  LegacyAdvertising
 

Public Types

enum class  AdvertiseError {
  AdvertiseError::kNotSupported = 1 , AdvertiseError::kAdvertisingDataTooLong = 2 , AdvertiseError::kScanResponseDataTooLong = 3 , AdvertiseError::kInvalidParameters = 4 ,
  AdvertiseError::kNotEnoughAdvertisingSlots = 5 , AdvertiseError::kFailed = 6
}
 Errors returned by Advertise. More...
 
using ScanResponse = AdvertisingData
 
using ConnectionOptions = Connection2::ConnectionOptions
 
using AdvertisingProcedure = std::variant< LegacyAdvertising, ExtendedAdvertising >
 
using AdvertiseResult = pw::expected< AdvertisedPeripheral2::Ptr, AdvertiseError >
 

Public Member Functions

virtual async2::OnceReceiver< AdvertiseResult > Advertise (const AdvertisingParameters &parameters)=0
 

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