Namespace Belay.Core
Namespaces
Classes
Simple attribute handler that replaces the complex executor hierarchy. Handles method attributes with direct, understandable logic.
Main entry point for MicroPython device communication. Provides a high-level interface for connecting to and interacting with MicroPython devices.
Unified device connection that handles both serial and subprocess communication. Uses sophisticated adaptive Raw REPL protocol with graceful degradation to basic mode. Implements simplified architecture principles while maintaining advanced protocol capabilities.
Simple device discovery that returns available serial ports. Replaces complex detection logic with basic port enumeration.
Simple exception for all device-related errors. Follows simple error handling pattern with minimal complexity.
Represents the output received from a device.
Simple state tracking for MicroPython device operations. Replaces complex session management with lightweight state tracking aligned with single-threaded MicroPython device constraints.
Represents a change in device connection state.
Direct executor that handles all attribute types via AttributeHandler. Replaces the complex executor hierarchy with a single, focused implementation.
Enhanced execution result with detailed error classification and diagnostics.
Minimal Linux-compatible serial connection using file I/O operations. Simple cross-platform serial communication for MicroPython devices.
Process-based serial connection that uses external processes for I/O like mpremote does. This approach avoids the FileStream blocking issues on Linux serial devices.
Simple, documented Raw REPL protocol implementation. Replaces complex protocol abstractions with direct, understandable code. See ICD-001 for protocol specification.
Result from Raw REPL code execution with enhanced error classification.
Simple result parser that replaces complex result mapping infrastructure. Handles conversion from device output to strongly-typed results.
Simple, efficient caching implementation that replaces the complex caching infrastructure. Uses basic memoization suitable for MicroPython device operations.
Simplified device capabilities with efficient batched detection. Replaces sequential capability detection with single optimized call.
Simple Raw REPL implementation following official MicroPython mpremote patterns. Direct implementation without complex state management or capability detection.
Provides simplified capability detection for MicroPython devices using a single batched approach. Replaces the complex sequential detection system with efficient batched detection.
Simplified device implementation using direct AttributeHandler and IDeviceConnection. Replaces complex executor hierarchy with direct, documented interfaces per ICD-002.
Interfaces
Simplified device connection interface that replaces the complex IDeviceCommunication hierarchy. Focuses on essential operations without over-abstraction. See ICD-002 for complete specification.
Enums
DeviceConnection.ConnectionType
Connection types supported by this device connection.
DeviceConnection.ConnectionType
Connection types supported by this device connection.
Represents the connection state of a device.
Represents the type of error that occurred during code execution. Provides enhanced error classification for better diagnostics and handling.
Hardware features that can be detected on MicroPython devices.