Skip to content

Conversation

@CyborgMaster
Copy link

I just want to confirm what I've found. It is currently not possible to pass a serial number into HidApi.open, right? I'm not asking for a fix (unless you feel like doing it), but I just want to confirm. It looks like the serial is defined in FFI as an int type, when really it should be a WCHAR pointer. It also looks like the WCHAR implementation currently only supports reading strings not writing them. I have thought about using https://github.com/nthachus/ffi_wide_char, which supports both ways, but that would require reworking all of the string types.

@CyborgMaster
Copy link
Author

Just want to say thanks for this lib, I've found it super useful!

@CyborgMaster
Copy link
Author

This ended up being super important for my local workflow, so I went ahead and implemented it and changed my original issue to a PR. Let me know if you have any feedback or would like any tweaks made before merging.

@CyborgMaster CyborgMaster changed the title Can't Pass Serial Allow opening device by Serial Jan 10, 2021
@CyborgMaster
Copy link
Author

Let me know if there is anything I can do to help get this ready to merge. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant