Skip to content

Method WriteFile

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

WriteFile(string, byte[], CancellationToken)

Writes a file to the device.

csharp
Task WriteFile(string devicePath, byte[] data, CancellationToken cancellationToken = default)

Parameters

devicePath string

The path on the device where to write the file.

data byte[]

The file data to write.

cancellationToken CancellationToken

Cancellation token for the operation.

Returns

Task

Released under the Apache License 2.0.