Closed ssvendsen closed 1 year ago
Let me add this as a new "enhancement" for an upcoming version. I'm currently working to make this library fully usable on Android without requiring users to root their device, so I'll try to get this change incorporated into that release as well in the future.
So after looking into this pretty extensively, it looks like the only way to make proper CDC requests would involve making this library extremely aware of USB-specific drivers and constructs. Since this is truly only meant to be able to handle serial-specific functionality (and because dealing directly with driver requests in a cross-platform way is far too convoluted), I'm going to close this as "won't implement." Thanks for the request though...it was definitely worth looking into!
Hi. A CDC device has the capability to report it's currently set baud rate (through the CDC get line config request). This can be used to detect if the device has clamped a previously set baud rate (e.g. if the user tried to set it too high). Is there a way jSerialComm could request this information from the device instead of just returning the locally cached value? I understand it would only apply to CDC devices and that we would depend on the rest of the driver stack also reaching out to the device.