A no-op LeaseProvider that always successfully returns an fake lease. More...
#include <null_lease_provider.h>
Public Member Functions | |
Result< Lease > | Acquire (PW_SAPPHIRE_LEASE_TOKEN_TYPE) override |
A no-op LeaseProvider that always successfully returns an fake lease.
|
inlineoverridevirtual |
Try to acquire a lease. Prefer to use PW_SAPPHIRE_ACQUIRE_LEASE
instead.
name | will be either a const char* or a uint32_t depending on whether tokenization is enabled. |
embed:rst:leading-asterisk * * .. pw-status-codes:: * * OK: A `Lease` was successfully created and returned. * * UNAVAILABLE: A lease could not be created. * * INVALID_ARGUMENT: The name was invalid (e.g. empty). * *
Implements pw::bluetooth_sapphire::LeaseProvider.