Class DescriptorExplorationOptions
- Namespace
- Bluetooth.Abstractions.Scanning.Options
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents options for exploring Bluetooth descriptors within a characteristic.
public record DescriptorExplorationOptions : IEquatable<DescriptorExplorationOptions>
- Inheritance
-
DescriptorExplorationOptions
- Implements
- Inherited Members
Remarks
Descriptor exploration discovers all descriptors available within a specific characteristic. Descriptors provide additional metadata and configuration for characteristics.
Properties
Default
Gets the default descriptor exploration options.
public static DescriptorExplorationOptions Default { get; }
Property Value
DescriptorUuidFilter
Gets or sets a filter to apply when exploring descriptors. Only descriptors matching this filter will be explored.
public Func<Guid, bool>? DescriptorUuidFilter { get; init; }
Property Value
Remarks
This can be used to limit exploration to specific descriptors of interest.
Default: null (explore all descriptors)
UseCache
Gets or sets a value indicating whether to skip exploration if descriptors have already been discovered.
public bool UseCache { get; init; }
Property Value
Remarks
When enabled, if the characteristic already has descriptors in its collection, exploration is skipped.
Default: true