Method PutFileAsync
Namespace: Belay.Core
Assembly: Belay.Core.dll
PutFileAsync(string, string, CancellationToken)
Writes a file to the device using efficient adaptive chunked transfer. Automatically optimizes chunk size based on device communication performance. Based on official mpremote fs_writefile implementation with base64 encoding.
csharp
public Task PutFileAsync(string localPath, string remotePath, CancellationToken cancellationToken = default)Parameters
localPath string
Local file path.
remotePath string
Remote file path on device.
cancellationToken CancellationToken
Cancellation token.