Class SimplifiedCapabilityDetection
Namespace: Belay.Core
Assembly: Belay.Core.dll
Provides simplified capability detection for MicroPython devices using a single batched approach. Replaces the complex sequential detection system with efficient batched detection.
public static class SimplifiedCapabilityDetection
Inheritance
object ← SimplifiedCapabilityDetection
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
This class implements capability detection through a single Python script execution instead of the previous approach of 14+ sequential import attempts. This provides:
Performance improvements:
- Detection completes in <100ms instead of ~2000ms (20x faster)
- Single device communication call instead of 14+ separate calls
- Reduced network overhead and device load
- More reliable detection with comprehensive error handling
Methods
DetectAsync(DeviceConnection, ILogger?, CancellationToken)
Detects device capabilities using a single batched Python script execution.