Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HidReport Data Length is Read-Only? WIN 10 Issue? #109

Open
nobbyv opened this issue Jun 4, 2019 · 0 comments
Open

HidReport Data Length is Read-Only? WIN 10 Issue? #109

nobbyv opened this issue Jun 4, 2019 · 0 comments

Comments

@nobbyv
Copy link

nobbyv commented Jun 4, 2019

I saw a few people had issues with writing using this library on WIN10. I'm using CreateReport to create a HID report, but the length of the data array always comes back as 0, and attempting to set it gives an error in Visual Studio. Anyone else experiencing this?

    Public Function HidDeviceReboot()

    If Not MMM_TS_HID_Device.IsOpen Then
        MMM_TS_HID_Device.OpenDevice()
    End If

    Dim RebootCMD As HidReport = MMM_TS_HID_Device.CreateReport
    RebootCMD.Data.Length = 8 'Compiler complains here

    RebootCMD.ReportId = 3
    RebootCMD.Data(0) = 3
    RebootCMD.Data(1) = 7
    RebootCMD.Data(2) = 5

    MMM_TS_HID_Device.WriteReport(RebootCMD)

    Return 1

End Function
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

No branches or pull requests

1 participant