IntergatedCircuits / HidSharp

HIDSharp is a multiplatform C# library for USB HID devices by James F. Bellinger
https://www.zer7.com/software/hidsharp
Other
121 stars 34 forks source link

How can i read data async from buffer ? #5

Open orcunor opened 3 years ago

orcunor commented 3 years ago

How can I read the data from the buffer with asynchronously? I'm trying to make a simple win form app. I can read and write synchronously, but with which function or how can I do asynchronous reading with HidSharp ? Can anybody help me

benedekkupper commented 3 years ago

Please check HidSharp.Test/Program.cs, I guess the THREAD_POOL_RECEIVED_EVENT_APPROACH will get you closest to an async apach.