You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our web application, we need to reduce the packet size to increase the update frequency.
When using the Logic Analyzer to observe the packet, I noticed that ReceiveFeatureReport always returns the full length as defined in the descriptor. However, with HIDIOCGFEATURE(len) in Linux or HidD_GetFeature in Windows, only a specific length will be obtained.
How can we do it using WebHID?
The text was updated successfully, but these errors were encountered:
Interesting, I didn't realize you could request a shorter report to improve update frequency. Currently, WebHID uses the size of the report defined in the report descriptor and doesn't provide a way to specify the report size.
We could support this by adding an (optional) options parameter to receiveFeatureReport:
I'm not sure what this should do if the requested report length is longer than the length defined in the report descriptor. I think for most devices this will cause a device error, but perhaps there are devices where this is necessary.
In our web application, we need to reduce the packet size to increase the update frequency.
When using the Logic Analyzer to observe the packet, I noticed that ReceiveFeatureReport always returns the full length as defined in the descriptor. However, with HIDIOCGFEATURE(len) in Linux or HidD_GetFeature in Windows, only a specific length will be obtained.
How can we do it using WebHID?
The text was updated successfully, but these errors were encountered: