Class SimpleDeviceCapabilities
Namespace: Belay.Core
Assembly: Belay.Core.dll
Simplified device capabilities with efficient batched detection. Replaces sequential capability detection with single optimized call.
public sealed class SimpleDeviceCapabilities
Inheritance
object ← SimpleDeviceCapabilities
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
This class provides device capability information detected through a single batched script execution, eliminating the performance issues of the previous sequential detection approach (14+ separate import attempts).
Performance improvements:
- Single batched detection call instead of 14+ sequential calls
- Detection completes in <100ms instead of ~2000ms
- Reduced device communication overhead
- More reliable detection with better error handling
Properties
Gets or sets the available memory in bytes.
Gets or sets a value indicating whether capability detection has completed.
Gets or sets the MicroPython platform identifier.
Gets or sets the supported hardware features as a flag enumeration.
Gets or sets the MicroPython version information.
Methods
SupportsFeature(SimpleDeviceFeatureSet)
Gets a value indicating whether the device supports a specific feature.
Returns a string representation of the device capabilities.