Add TrySendAndReceive

This commit is contained in:
2020-11-24 15:34:50 +01:00
parent 9b6e8799b0
commit 1eefc8993c
2 changed files with 32 additions and 4 deletions

View File

@@ -19,7 +19,12 @@ namespace WaveshareUARTFingerprintSensor.Sample
sensor.Start();
var count = sensor.GetUserCount();
if (sensor.TryGetUserCount(out ushort count))
{
Console.WriteLine(count);
}
Console.WriteLine("End");
Thread.Sleep(-1);
}