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
This function returns the actual number of bytes written and -1 on error.
I haven't reviewed when/why the actual number of bytes will be different, but +1 that we should pass the value back to JS.
The C++ write wrapper would need to return that value on success, and then the JS bridge NAN_METHOD(HID::write) needs to take that to use as its NanReturnValue.
Hello! I would like to ask if it is possible for device.write(data) to be able to give us a response with the number of bytes written to a device?
Would really appreciate it if you can somehow shed some light, or point where to extract this.
Thanks and have a good day.
The text was updated successfully, but these errors were encountered: