Must only be constructed and destroyed on the Bluetooth thread.
Public Member Functions | |
Peripheral (bt::gap::Adapter::WeakPtr adapter, pw::async::Dispatcher &dispatcher) | |
Must only be constructed on the Bluetooth thread. | |
~Peripheral () override | |
Must only be destroyed on the Bluetooth thread. | |
async2::OnceReceiver< AdvertiseResult > | Advertise (const AdvertisingParameters ¶meters) override |
virtual async2::OnceReceiver< AdvertiseResult > | Advertise (const AdvertisingParameters ¶meters)=0 |
Static Public Member Functions | |
static pw::sync::Mutex & | lock () |
Additional Inherited Members | |
![]() | |
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 > |