Skip to content

Class SimpleDeviceCapabilities ​

Namespace: Belay.Core
Assembly: Belay.Core.dll

Simplified device capabilities with efficient batched detection. Replaces sequential capability detection with single optimized call.

csharp
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 ​

AvailableMemory

Gets or sets the available memory in bytes.

DetectionComplete

Gets or sets a value indicating whether capability detection has completed.

Platform

Gets or sets the MicroPython platform identifier.

SupportedFeatures

Gets or sets the supported hardware features as a flag enumeration.

Version

Gets or sets the MicroPython version information.

Methods ​

SupportsFeature(SimpleDeviceFeatureSet)

Gets a value indicating whether the device supports a specific feature.

ToString()

Returns a string representation of the device capabilities.

Released under the Apache License 2.0.