Skip to content

Data Received Event? #32

Answered by badcel
sdeluca asked this question in Q&A
May 8, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This library only wraps the available HidApi api which does not offer any events.

But you can probably set a Device into non blocking mode and asynchronously check for new data. If new data is received raise an event.

HidApi docs: https://github.com/libusb/hidapi/blob/b516e970480a8d05b1c392d106ca110a9d06d668/hidapi/hidapi.h#LL372C13-L372C13

If you experience problems with the library let me know. Any feedback is welcome.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sdeluca
Comment options

Answer selected by sdeluca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants