Skip to content

Method DiscoverFirstAsync ​

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

DiscoverFirstAsync(CancellationToken) ​

Creates a device connection for the first discovered device.

csharp
public static Task<DeviceConnection?> DiscoverFirstAsync(CancellationToken cancellationToken = default)

Parameters ​

cancellationToken CancellationToken

Cancellation token.

Returns ​

Task<DeviceConnection?>

A device connection for the first discovered device, or null if none found.

Released under the Apache License 2.0.