Skip to content

Method EnterRawReplAsync

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

EnterRawReplAsync(bool, int, CancellationToken)

Enters raw REPL mode with optional soft reset. Based on official mpremote enter_raw_repl implementation.

csharp
public Task EnterRawReplAsync(bool softReset = true, int timeoutSeconds = 10, CancellationToken cancellationToken = default)

Parameters

softReset bool

Whether to perform a soft reset after entering raw mode.

timeoutSeconds int

Timeout in seconds for the operation.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

Exceptions

InvalidOperationException

Thrown when concurrent operations are detected or object is disposed.

Released under the Apache License 2.0.