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

Overview

Represents the LE central role. Used to scan and connect to peripherals.

Inheritance diagram for pw::bluetooth::low_energy::Central2:
pw::bluetooth_sapphire::Central

Classes

struct  ScanFilter
 
class  ScanHandle
 Represents an ongoing LE scan. More...
 
struct  ScanOptions
 Parameters used during a scan. More...
 
struct  ScanResult
 

Public Types

enum class  ScanType : uint8_t { kPassive , ScanType::kActiveUsePublicAddress , ScanType::kActiveUseRandomAddress , ScanType::kActiveUseResolvablePrivateAddress }
 
enum class  ConnectError : uint8_t { ConnectError::kUnknownPeer , ConnectError::kInvalidOptions , ConnectError::kAlreadyExists , ConnectError::kCouldNotBeEstablished }
 Possible errors returned by Connect. More...
 
enum class  StartScanError : uint8_t { StartScanError::kScanInProgress , StartScanError::kInvalidParameters , StartScanError::kInternal }
 
using ConnectResult = pw::expected< Connection2::Ptr, ConnectError >
 The result type returned by Connect().
 
using ScanStartResult = pw::expected< ScanHandle::Ptr, StartScanError >
 The result type returned by Scan().
 

Public Member Functions

virtual async2::OnceReceiver< ConnectResultConnect (PeerId peer_id, Connection2::ConnectionOptions options)=0
 
virtual async2::OnceReceiver< ScanStartResultScan (const ScanOptions &options)=0
 

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